⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 readline.0

📁 在非GUI环境下
💻 0
📖 第 1 页 / 共 4 页
字号:
              ters _E_S_C and _C_-_J will terminate an incremental search.       kkeeyymmaapp ((eemmaaccss))              Set the current readline keymap.  The set of legal keymap  names              is  _e_m_a_c_s_,  _e_m_a_c_s_-_s_t_a_n_d_a_r_d_, _e_m_a_c_s_-_m_e_t_a_, _e_m_a_c_s_-_c_t_l_x_, _v_i_, _v_i_-_m_o_v_e_,              _v_i_-_c_o_m_m_a_n_d, and _v_i_-_i_n_s_e_r_t.   _v_i  is  equivalent  to  _v_i_-_c_o_m_m_a_n_d;              _e_m_a_c_s  is  equivalent  to  _e_m_a_c_s_-_s_t_a_n_d_a_r_d.  The default value is              _e_m_a_c_s.  The value  of  eeddiittiinngg--mmooddee  also  affects  the  default              keymap.       mmaarrkk--ddiirreeccttoorriieess ((OOnn))              If set to OOnn, completed directory names have a slash appended.       mmaarrkk--mmooddiiffiieedd--lliinneess ((OOffff))              If  set  to  OOnn,  history lines that have been modified are dis-              played with a preceding asterisk (**).       mmaarrkk--ssyymmlliinnkkeedd--ddiirreeccttoorriieess ((OOffff))              If set to OOnn, completed names which are symbolic links to direc-              tories   have   a  slash  appended  (subject  to  the  value  of              mmaarrkk--ddiirreeccttoorriieess).       mmaattcchh--hhiiddddeenn--ffiilleess ((OOnn))              This variable, when set to OOnn, causes readline  to  match  files              whose  names  begin  with  a  `.' (hidden files) when performing              filename completion, unless the leading `.' is supplied  by  the              user in the filename to be completed.       oouuttppuutt--mmeettaa ((OOffff))              If  set  to OOnn, readline will display characters with the eighth              bit set directly rather than as a meta-prefixed escape sequence.       ppaaggee--ccoommpplleettiioonnss ((OOnn))              If  set to OOnn, readline uses an internal _m_o_r_e-like pager to dis-              play a screenful of possible completions at a time.       pprriinntt--ccoommpplleettiioonnss--hhoorriizzoonnttaallllyy ((OOffff))              If set to OOnn, readline will  display  completions  with  matches              sorted  horizontally in alphabetical order, rather than down the              screen.       sshhooww--aallll--iiff--aammbbiigguuoouuss ((OOffff))              This alters the default behavior of  the  completion  functions.              If set to oonn, words which have more than one possible completion              cause the matches to be listed immediately  instead  of  ringing              the bell.       sshhooww--aallll--iiff--uunnmmooddiiffiieedd ((OOffff))              This  alters the default behavior of the completion functions in              a fashion similar to sshhooww--aallll--iiff--aammbbiigguuoouuss.  If set to oonn, words              which  have more than one possible completion without any possi-              ble partial completion (the possible completions don't  share  a              common  prefix)  cause  the  matches  to  be  listed immediately              instead of ringing the bell.       vviissiibbllee--ssttaattss ((OOffff))              If set to OOnn, a character denoting a file's type as reported  by              _s_t_a_t(2)  is  appended to the filename when listing possible com-              pletions.   CCoonnddiittiioonnaall CCoonnssttrruuccttss       Readline implements a facility similar in  spirit  to  the  conditional       compilation  features  of  the C preprocessor which allows key bindings       and variable settings to be performed as the result  of  tests.   There       are four parser directives used.       $$iiff    The  $$iiff construct allows bindings to be made based on the edit-              ing mode, the terminal being  used,  or  the  application  using              readline.   The text of the test extends to the end of the line;              no characters are required to isolate it.              mmooddee   The mmooddee== form of the  $$iiff  directive  is  used  to  test                     whether  readline  is  in  emacs or vi mode.  This may be                     used in conjunction with  the  sseett  kkeeyymmaapp  command,  for                     instance,  to  set  bindings  in  the  _e_m_a_c_s_-_s_t_a_n_d_a_r_d and                     _e_m_a_c_s_-_c_t_l_x keymaps only if readline is  starting  out  in                     emacs mode.              tteerrmm   The  tteerrmm==  form may be used to include terminal-specific                     key bindings, perhaps to bind the key sequences output by                     the terminal's function keys.  The word on the right side                     of the == is tested against the full name of the  terminal                     and  the portion of the terminal name before the first --.                     This allows _s_u_n  to  match  both  _s_u_n  and  _s_u_n_-_c_m_d,  for                     instance.              aapppplliiccaattiioonn                     The aapppplliiccaattiioonn construct is used to include application-                     specific  settings.   Each  program  using  the  readline                     library  sets the _a_p_p_l_i_c_a_t_i_o_n _n_a_m_e, and an initialization                     file can test for a particular value.  This could be used                     to  bind key sequences to functions useful for a specific                     program.  For instance, the following command adds a  key                     sequence  that  quotes  the  current  or previous word in                     Bash:                     $$iiff Bash                     # Quote the current or previous word                     "\C-xq": "\eb\"\ef\""                     $$eennddiiff       $$eennddiiff This command, as seen in the previous example, terminates an $$iiff              command.       $$eellssee  Commands in this branch of the $$iiff directive are executed if the              test fails.       $$iinncclluuddee              This directive takes a single filename as an argument and  reads              commands  and bindings from that file.  For example, the follow-              ing directive would read _/_e_t_c_/_i_n_p_u_t_r_c:              $$iinncclluuddee  _/_e_t_c_/_i_n_p_u_t_r_cSSEEAARRCCHHIINNGG       Readline provides commands for searching through  the  command  history       for  lines  containing a specified string.  There are two search modes:       _i_n_c_r_e_m_e_n_t_a_l and _n_o_n_-_i_n_c_r_e_m_e_n_t_a_l.       Incremental searches begin before the  user  has  finished  typing  the       search  string.  As each character of the search string is typed, read-       line displays the next entry from the history matching the string typed       so  far.   An  incremental  search  requires only as many characters as       needed to find the desired history entry.  To search  backward  in  the       history for a particular string, type CC--rr.  Typing CC--ss searches forward       through the history.  The  characters  present  in  the  value  of  the       iisseeaarrcchh--tteerrmmiinnaattoorrss  variable  are  used  to  terminate  an incremental       search.  If that variable has not been assigned a value the _E_s_c_a_p_e  and       CC--JJ characters will terminate an incremental search.  CC--GG will abort an       incremental search and restore the original line.  When the  search  is       terminated,  the history entry containing the search string becomes the       current line.       To find other matching entries in the history list, type CC--ss or CC--rr  as       appropriate.   This  will search backward or forward in the history for       the next line matching the search string typed so far.  Any  other  key       sequence bound to a readline command will terminate the search and exe-       cute that command.  For instance, a newline will terminate  the  search       and  accept  the  line,  thereby executing the command from the history       list.  A movement command will terminate the search, make the last line       found the current line, and begin editing.       Non-incremental  searches read the entire search string before starting       to search for matching history lines.  The search string may  be  typed       by the user or be part of the contents of the current line.EEDDIITTIINNGG CCOOMMMMAANNDDSS       The  following  is  a list of the names of the commands and the default       key sequences to which they are bound.  Command names without an accom-       panying key sequence are unbound by default.       In the following descriptions, _p_o_i_n_t refers to the current cursor posi-       tion, and _m_a_r_k refers to a cursor position saved by the  sseett--mmaarrkk  com-       mand.   The  text  between  the  point  and  mark is referred to as the       _r_e_g_i_o_n.   CCoommmmaannddss ffoorr MMoovviinngg       bbeeggiinnnniinngg--ooff--lliinnee ((CC--aa))              Move to the start of the current line.       eenndd--ooff--lliinnee ((CC--ee))              Move to the end of the line.       ffoorrwwaarrdd--cchhaarr ((CC--ff))              Move forward a character.       bbaacckkwwaarrdd--cchhaarr ((CC--bb))              Move back a character.       ffoorrwwaarrdd--wwoorrdd ((MM--ff))              Move forward to the end of the next word.  Words are composed of              alphanumeric characters (letters and digits).       bbaacckkwwaarrdd--wwoorrdd ((MM--bb))              Move  back  to the start of the current or previous word.  Words              are composed of alphanumeric characters (letters and digits).       cclleeaarr--ssccrreeeenn ((CC--ll))              Clear the screen leaving the current line  at  the  top  of  the              screen.   With  an  argument,  refresh  the current line without              clearing the screen.       rreeddrraaww--ccuurrrreenntt--lliinnee              Refresh the current line.   CCoommmmaannddss ffoorr MMaanniippuullaattiinngg tthhee HHiissttoorryy       aacccceepptt--lliinnee ((NNeewwlliinnee,, RReettuurrnn))              Accept the line regardless of where the cursor is.  If this line              is  non-empty,  it  may  be added to the history list for future              recall with aadddd__hhiissttoorryy(()).  If the line is  a  modified  history              line, the history line is restored to its original state.       pprreevviioouuss--hhiissttoorryy ((CC--pp))              Fetch the previous command from the history list, moving back in              the list.       nneexxtt--hhiissttoorryy ((CC--nn))              Fetch the next command from the history list, moving forward  in              the list.       bbeeggiinnnniinngg--ooff--hhiissttoorryy ((MM--<<))              Move to the first line in the history.       eenndd--ooff--hhiissttoorryy ((MM-->>))              Move  to  the end of the input history, i.e., the line currently              being entered.       rreevveerrssee--sseeaarrcchh--hhiissttoorryy ((CC--rr))              Search backward starting at the current  line  and  moving  `up'              through  the  history  as  necessary.   This  is  an incremental              search.       ffoorrwwaarrdd--sseeaarrcchh--hhiissttoorryy ((CC--ss))              Search forward starting at the current line  and  moving  `down'              through  the  history  as  necessary.   This  is  an incremental              search.       nnoonn--iinnccrreemmeennttaall--rreevveerrssee--sseeaarrcchh--hhiissttoorryy ((MM--pp))              Search backward through the history starting at the current line              using  a  non-incremental  search  for  a string supplied by the              user.       nnoonn--iinnccrreemmeennttaall--ffoorrwwaarrdd--sseeaarrcchh--hhiissttoorryy ((MM--nn))              Search forward  through  the  history  using  a  non-incremental              search for a string supplied by the user.       hhiissttoorryy--sseeaarrcchh--ffoorrwwaarrdd              Search  forward through the history for the string of characters              between the start of the current line  and  the  current  cursor              position (the _p_o_i_n_t).  This is a non-incremental search.       hhiissttoorryy--sseeaarrcchh--bbaacckkwwaarrdd              Search backward through the history for the string of characters              between the start of the current line and the point.  This is  a              non-incremental search.       yyaannkk--nntthh--aarrgg ((MM--CC--yy))              Insert  the  first argument to the previous command (usually the              second word on the previous line) at point.  With an argument _n,              insert  the _nth word from the previous command (the words in the              previous command  begin  with  word  0).   A  negative  argument              inserts the _nth word from the end of the previous command.       yyaannkk--llaasstt--aarrgg ((MM--..,, MM--__))              Insert  the last argument to the previous command (the last word              of the  previous  history  entry).   With  an  argument,  behave              exactly  like  yyaannkk--nntthh--aarrgg.   Successive calls to yyaannkk--llaasstt--aarrgg              move back through the history list, inserting the last  argument              of each line in turn.   CCoommmmaannddss ffoorr CChhaannggiinngg TTeexxtt       ddeelleettee--cchhaarr ((CC--dd))              Delete  the character at point.  If point is at the beginning of              the line, there are no characters in  the  line,  and  the  last              character typed was not bound to ddeelleettee--cchhaarr, then return EEOOFF.       bbaacckkwwaarrdd--ddeelleettee--cchhaarr ((RRuubboouutt))              Delete  the  character  behind the cursor.  When given a numeric              argument, save the deleted text on the kill ring.       ffoorrwwaarrdd--bbaacckkwwaarrdd--ddeelleettee--cchhaarr

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -