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

📄 readline.0

📁 在非GUI环境下
💻 0
📖 第 1 页 / 共 4 页
字号:
              Delete the character under the cursor, unless the cursor  is  at              the end of the line, in which case the character behind the cur-              sor is deleted.       qquuootteedd--iinnsseerrtt ((CC--qq,, CC--vv))              Add the next character that you type to the line verbatim.  This              is how to insert characters like CC--qq, for example.       ttaabb--iinnsseerrtt ((MM--TTAABB))              Insert a tab character.       sseellff--iinnsseerrtt ((aa,, bb,, AA,, 11,, !!,, ......))              Insert the character typed.       ttrraannssppoossee--cchhaarrss ((CC--tt))              Drag  the  character  before point forward over the character at              point, moving point forward as well.  If point is at the end  of              the  line, then this transposes the two characters before point.              Negative arguments have no effect.       ttrraannssppoossee--wwoorrddss ((MM--tt))              Drag the word before point past the  word  after  point,  moving              point  over  that  word  as well.  If point is at the end of the              line, this transposes the last two words on the line.       uuppccaassee--wwoorrdd ((MM--uu))              Uppercase the current (or  following)  word.   With  a  negative              argument, uppercase the previous word, but do not move point.       ddoowwnnccaassee--wwoorrdd ((MM--ll))              Lowercase  the  current  (or  following)  word.  With a negative              argument, lowercase the previous word, but do not move point.       ccaappiittaalliizzee--wwoorrdd ((MM--cc))              Capitalize the current (or following)  word.   With  a  negative              argument, capitalize the previous word, but do not move point.       oovveerrwwrriittee--mmooddee              Toggle  overwrite mode.  With an explicit positive numeric argu-              ment, switches to overwrite mode.  With an explicit non-positive              numeric argument, switches to insert mode.  This command affects              only eemmaaccss mode; vvii mode does overwrite differently.  Each  call              to _r_e_a_d_l_i_n_e_(_) starts in insert mode.  In overwrite mode, charac-              ters bound to sseellff--iinnsseerrtt replace the text at point rather  than              pushing  the  text  to  the  right.   Characters  bound to bbaacckk--              wwaarrdd--ddeelleettee--cchhaarr replace  the  character  before  point  with  a              space.  By default, this command is unbound.   KKiilllliinngg aanndd YYaannkkiinngg       kkiillll--lliinnee ((CC--kk))              Kill the text from point to the end of the line.       bbaacckkwwaarrdd--kkiillll--lliinnee ((CC--xx RRuubboouutt))              Kill backward to the beginning of the line.       uunniixx--lliinnee--ddiissccaarrdd ((CC--uu))              Kill  backward  from  point  to  the beginning of the line.  The              killed text is saved on the kill-ring.       kkiillll--wwhhoollee--lliinnee              Kill all characters on the current line, no matter  where  point              is.       kkiillll--wwoorrdd ((MM--dd))              Kill  from  point  the  end  of  the current word, or if between              words, to the end of the next word.   Word  boundaries  are  the              same as those used by ffoorrwwaarrdd--wwoorrdd.       bbaacckkwwaarrdd--kkiillll--wwoorrdd ((MM--RRuubboouutt))              Kill  the  word  behind  point.  Word boundaries are the same as              those used by bbaacckkwwaarrdd--wwoorrdd.       uunniixx--wwoorrdd--rruubboouutt ((CC--ww))              Kill the word behind point, using white space as a  word  bound-              ary.  The killed text is saved on the kill-ring.       uunniixx--ffiilleennaammee--rruubboouutt              Kill  the  word  behind  point,  using white space and the slash              character as the word boundaries.  The killed text is  saved  on              the kill-ring.       ddeelleettee--hhoorriizzoonnttaall--ssppaaccee ((MM--\\))              Delete all spaces and tabs around point.       kkiillll--rreeggiioonn              Kill  the  text  between  the point and _m_a_r_k (saved cursor posi-              tion).  This text is referred to as the _r_e_g_i_o_n.       ccooppyy--rreeggiioonn--aass--kkiillll              Copy the text in the region to the kill buffer.       ccooppyy--bbaacckkwwaarrdd--wwoorrdd              Copy the word before point to the kill buffer.  The word  bound-              aries are the same as bbaacckkwwaarrdd--wwoorrdd.       ccooppyy--ffoorrwwaarrdd--wwoorrdd              Copy  the  word  following  point  to the kill buffer.  The word              boundaries are the same as ffoorrwwaarrdd--wwoorrdd.       yyaannkk ((CC--yy))              Yank the top of the kill ring into the buffer at point.       yyaannkk--ppoopp ((MM--yy))              Rotate the kill ring, and yank the new top.  Only works  follow-              ing yyaannkk or yyaannkk--ppoopp.   NNuummeerriicc AArrgguummeennttss       ddiiggiitt--aarrgguummeenntt ((MM--00,, MM--11,, ......,, MM----))              Add  this digit to the argument already accumulating, or start a              new argument.  M-- starts a negative argument.       uunniivveerrssaall--aarrgguummeenntt              This is another way to specify an argument.  If this command  is              followed  by one or more digits, optionally with a leading minus              sign, those digits define the argument.  If the command is  fol-              lowed  by  digits,  executing  uunniivveerrssaall--aarrgguummeenntt again ends the              numeric argument, but is otherwise ignored.  As a special  case,              if  this  command is immediately followed by a character that is              neither a digit or minus sign, the argument count for  the  next              command  is multiplied by four.  The argument count is initially              one, so executing this function the first time makes  the  argu-              ment count four, a second time makes the argument count sixteen,              and so on.   CCoommpplleettiinngg       ccoommpplleettee ((TTAABB))              Attempt to perform completion on the  text  before  point.   The              actual  completion performed is application-specific.  BBaasshh, for              instance, attempts completion treating the text  as  a  variable              (if  the  text begins with $$), username (if the text begins with              ~~), hostname (if the text begins with @@), or command  (including              aliases  and  functions)  in  turn.  If none of these produces a              match, filename completion is  attempted.   GGddbb,  on  the  other              hand,  allows completion of program functions and variables, and              only attempts filename completion under certain circumstances.       ppoossssiibbllee--ccoommpplleettiioonnss ((MM--??))              List the possible completions of the text before point.       iinnsseerrtt--ccoommpplleettiioonnss ((MM--**))              Insert all completions of the text before point that would  have              been generated by ppoossssiibbllee--ccoommpplleettiioonnss.       mmeennuu--ccoommpplleettee              Similar  to ccoommpplleettee, but replaces the word to be completed with              a single match from the list of possible completions.   Repeated              execution  of  mmeennuu--ccoommpplleettee  steps through the list of possible              completions, inserting each match in turn.  At the  end  of  the              list of completions, the bell is rung (subject to the setting of              bbeellll--ssttyyllee) and the original text is restored.  An argument of _n              moves  _n  positions  forward  in the list of matches; a negative              argument may be used to move backward through  the  list.   This              command  is  intended  to  be  bound  to  TTAABB, but is unbound by              default.       ddeelleettee--cchhaarr--oorr--lliisstt              Deletes the character under the cursor if not at  the  beginning              or  end  of  the  line (like ddeelleettee--cchhaarr).  If at the end of the              line, behaves identically to ppoossssiibbllee--ccoommpplleettiioonnss.   KKeeyybbooaarrdd MMaaccrrooss       ssttaarrtt--kkbbdd--mmaaccrroo ((CC--xx (())              Begin saving the characters  typed  into  the  current  keyboard              macro.       eenndd--kkbbdd--mmaaccrroo ((CC--xx ))))              Stop saving the characters typed into the current keyboard macro              and store the definition.       ccaallll--llaasstt--kkbbdd--mmaaccrroo ((CC--xx ee))              Re-execute the last keyboard macro defined, by making the  char-              acters in the macro appear as if typed at the keyboard.   MMiisscceellllaanneeoouuss       rree--rreeaadd--iinniitt--ffiillee ((CC--xx CC--rr))              Read  in  the  contents of the _i_n_p_u_t_r_c file, and incorporate any              bindings or variable assignments found there.       aabboorrtt ((CC--gg))              Abort the current editing command and ring the  terminal's  bell              (subject to the setting of bbeellll--ssttyyllee).       ddoo--uuppppeerrccaassee--vveerrssiioonn ((MM--aa,, MM--bb,, MM--_x,, ......))              If  the  metafied character _x is lowercase, run the command that              is bound to the corresponding uppercase character.       pprreeffiixx--mmeettaa ((EESSCC))              Metafy the next character typed.  EESSCC ff is equivalent to MMeettaa--ff.       uunnddoo ((CC--__,, CC--xx CC--uu))              Incremental undo, separately remembered for each line.       rreevveerrtt--lliinnee ((MM--rr))              Undo  all changes made to this line.  This is like executing the              uunnddoo command enough times to return  the  line  to  its  initial              state.       ttiillddee--eexxppaanndd ((MM--&&))              Perform tilde expansion on the current word.       sseett--mmaarrkk ((CC--@@,, MM--<<ssppaaccee>>))              Set  the  mark to the point.  If a numeric argument is supplied,              the mark is set to that position.       eexxcchhaannggee--ppooiinntt--aanndd--mmaarrkk ((CC--xx CC--xx))              Swap the point with the mark.  The current  cursor  position  is              set  to the saved position, and the old cursor position is saved              as the mark.       cchhaarraacctteerr--sseeaarrcchh ((CC--]]))              A character is read and point is moved to the next occurrence of              that  character.   A negative count searches for previous occur-              rences.       cchhaarraacctteerr--sseeaarrcchh--bbaacckkwwaarrdd ((MM--CC--]]))              A character is read and point is moved to  the  previous  occur-              rence  of  that character.  A negative count searches for subse-              quent occurrences.       iinnsseerrtt--ccoommmmeenntt ((MM--##))              Without a numeric argument,  the  value  of  the  readline  ccoomm--              mmeenntt--bbeeggiinn  variable is inserted at the beginning of the current              line.  If a numeric argument is supplied, this command acts as a              toggle:   if  the characters at the beginning of the line do not              match the value of ccoommmmeenntt--bbeeggiinn, the value is inserted,  other-              wise the characters in ccoommmmeenntt--bbeeggiinn are deleted from the begin-              ning of the line.  In either case, the line is accepted as if  a              newline  had  been  typed.   The  default value of ccoommmmeenntt--bbeeggiinn              makes the current line a shell comment.  If a  numeric  argument              causes  the  comment  character  to be removed, the line will be              executed by the shell.       dduummpp--ffuunnccttiioonnss              Print all of the functions and their key bindings to  the  read-              line output stream.  If a numeric argument is supplied, the out-              put is formatted in such a way that it can be made  part  of  an              _i_n_p_u_t_r_c file.       dduummpp--vvaarriiaabblleess              Print  all  of  the  settable  variables and their values to the              readline output stream.  If a numeric argument is supplied,  the              output is formatted in such a way that it can be made part of an              _i_n_p_u_t_r_c file.       dduummpp--mmaaccrrooss              Print all of the readline key sequences bound to macros and  the              strings  they  output.   If  a numeric argument is supplied, the              output is formatted in such a way that it can be made part of an              _i_n_p_u_t_r_c file.       eemmaaccss--eeddiittiinngg--mmooddee ((CC--ee))              When  in  vvii command mode, this causes a switch to eemmaaccss editing              mode.       vvii--eeddiittiinngg--mmooddee ((MM--CC--jj))              When in eemmaaccss editing mode, this causes a switch to  vvii  editing              mode.DDEEFFAAUULLTT KKEEYY BBIINNDDIINNGGSS       The  following is a list of the default emacs and vi bindings.  Charac-       ters with the eighth bit set are  written  as  M-<character>,  and  are       referred to as _m_e_t_a_f_i_e_d characters.  The printable ASCII characters not       mentioned in the list of emacs  standard  bindings  are  bound  to  the       sseellff--iinnsseerrtt  function,  which just inserts the given character into the       input line.  In vi insertion mode, all characters not specifically men-       tioned are bound to sseellff--iinnsseerrtt.  Characters assigned to signal genera-       tion by _s_t_t_y(1) or the terminal driver, such as C-Z or C-C, retain that       function.   Upper  and  lower case metafied characters are bound to the       same function in the emacs mode meta keymap.  The remaining  characters       are  unbound,  which  causes  readline to ring the bell (subject to the       setting of the bbeellll--ssttyyllee variable).   EEmmaaccss MMooddee             Emacs Standard bindings

⌨️ 快捷键说明

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