{
    "content": [
        {
            "type": "text",
            "text": "# readline(3) (man)\n\n**Summary:** readline - get a line from a user with editing\n\n## See Also\n\n- bash(1)\n\n## Section Outline\n\n- **NAME** (2 lines)\n- **SYNOPSIS** (1 lines) — 3 subsections\n  - #include <stdio.h> (1 lines)\n  - #include <readline/readline.h> (1 lines)\n  - #include <readline/history.h> (3 lines)\n- **COPYRIGHT** (2 lines)\n- **DESCRIPTION** (13 lines)\n- **RETURN VALUE** (4 lines)\n- **NOTATION** (17 lines)\n- **INITIALIZATION FILE** (24 lines) — 47 subsections\n  - Key Bindings (64 lines)\n  - Variables (10 lines)\n  - bell-style (audible) (3 lines)\n  - bind-tty-special-chars (On) (2 lines)\n  - blink-matching-paren (Off) (2 lines)\n  - colored-completion-prefix (Off) (3 lines)\n  - colored-stats (Off) (3 lines)\n  - comment-begin (``#'') (2 lines)\n  - completion-display-width (-1) (4 lines)\n  - completion-ignore-case (Off) (2 lines)\n  - completion-map-case (Off) (3 lines)\n  - completion-prefix-display-length (0) (4 lines)\n  - completion-query-items (100) (6 lines)\n  - convert-meta (On) (4 lines)\n  - disable-completion (Off) (2 lines)\n  - echo-control-characters (On) (2 lines)\n  - editing-mode (emacs) (2 lines)\n  - emacs-mode-string (@) (6 lines)\n  - enable-bracketed-paste (On) (4 lines)\n  - enable-keypad (Off) (2 lines)\n  - enable-meta-key (On) (3 lines)\n  - expand-tilde (Off) (1 lines)\n  - history-preserve-point (Off) (2 lines)\n  - history-size (unset) (5 lines)\n  - horizontal-scroll-mode (Off) (4 lines)\n  - input-meta (Off) (4 lines)\n  - isearch-terminators (``C-[ C-J'') (3 lines)\n  - keymap (emacs) (4 lines)\n  - keyseq-timeout (500) (8 lines)\n  - mark-directories (On) (1 lines)\n  - mark-modified-lines (Off) (2 lines)\n  - mark-symlinked-directories (Off) (2 lines)\n  - match-hidden-files (On) (3 lines)\n  - menu-complete-display-prefix (Off) (2 lines)\n  - output-meta (Off) (3 lines)\n  - page-completions (On) (2 lines)\n  - print-completions-horizontally (Off) (2 lines)\n  - revert-all-at-newline (Off) (3 lines)\n  - show-all-if-ambiguous (Off) (3 lines)\n  - show-all-if-unmodified (Off) (4 lines)\n  - show-mode-in-prompt (Off) (3 lines)\n  - skip-completed-text (Off) (5 lines)\n  - vi-cmd-mode-string ((cmd)) (6 lines)\n  - vi-ins-mode-string ((ins)) (6 lines)\n  - visible-stats (Off) (3 lines)\n  - Conditional Constructs (55 lines)\n  - $include (5 lines)\n- **SEARCHING** (25 lines)\n- **EDITING COMMANDS** (7 lines) — 88 subsections\n  - Commands for Moving (1 lines)\n  - beginning-of-line (C-a) (1 lines)\n  - end-of-line (C-e) (1 lines)\n  - forward-char (C-f) (1 lines)\n  - backward-char (C-b) (1 lines)\n  - forward-word (M-f) (2 lines)\n  - backward-word (M-b) (2 lines)\n  - previous-screen-line (4 lines)\n  - next-screen-line (4 lines)\n  - clear-display (M-C-l) (2 lines)\n  - clear-screen (C-l) (2 lines)\n  - redraw-current-line (2 lines)\n  - Commands for Manipulating the History (1 lines)\n  - accept-line (Newline, Return) (3 lines)\n  - previous-history (C-p) (1 lines)\n  - next-history (C-n) (1 lines)\n  - beginning-of-history (M-<) (1 lines)\n  - end-of-history (M->) (1 lines)\n  - reverse-search-history (C-r) (2 lines)\n  - forward-search-history (C-s) (2 lines)\n  - non-incremental-reverse-search-history (M-p) (2 lines)\n  - non-incremental-forward-search-history (M-n) (2 lines)\n  - history-search-backward (3 lines)\n  - history-search-forward (3 lines)\n  - history-substring-search-backward (3 lines)\n  - history-substring-search-forward (3 lines)\n  - yank-nth-arg (M-C-y) (14 lines)\n  - operate-and-get-next (C-o) (5 lines)\n  - Commands for Changing Text (4 lines)\n  - delete-char (C-d) (2 lines)\n  - backward-delete-char (Rubout) (2 lines)\n  - forward-backward-delete-char (2 lines)\n  - quoted-insert (C-q, C-v) (2 lines)\n  - tab-insert (M-TAB) (1 lines)\n  - self-insert (a, b, A, 1, !, ...) (1 lines)\n  - transpose-chars (C-t) (3 lines)\n  - transpose-words (M-t) (3 lines)\n  - upcase-word (M-u) (2 lines)\n  - downcase-word (M-l) (2 lines)\n  - capitalize-word (M-c) (2 lines)\n  - overwrite-mode (8 lines)\n  - Killing and Yanking (1 lines)\n  - kill-line (C-k) (1 lines)\n  - backward-kill-line (C-x Rubout) (1 lines)\n  - unix-line-discard (C-u) (2 lines)\n  - kill-whole-line (1 lines)\n  - kill-word (M-d) (2 lines)\n  - backward-kill-word (M-Rubout) (2 lines)\n  - unix-word-rubout (C-w) (2 lines)\n  - unix-filename-rubout (2 lines)\n  - delete-horizontal-space (M-\\) (1 lines)\n  - kill-region (2 lines)\n  - copy-region-as-kill (1 lines)\n  - copy-backward-word (2 lines)\n  - copy-forward-word (2 lines)\n  - yank (C-y) (1 lines)\n  - yank-pop (M-y) (2 lines)\n  - Numeric Arguments (1 lines)\n  - digit-argument (M-0, M-1, ..., M--) (2 lines)\n  - universal-argument (9 lines)\n  - Completing (1 lines)\n  - complete (TAB) (7 lines)\n  - possible-completions (M-?) (7 lines)\n  - menu-complete (7 lines)\n  - menu-complete-backward (3 lines)\n  - delete-char-or-list (4 lines)\n  - Keyboard Macros (1 lines)\n  - start-kbd-macro (C-x () (1 lines)\n  - end-kbd-macro (C-x )) (2 lines)\n  - call-last-kbd-macro (C-x e) (2 lines)\n  - print-last-kbd-macro () (2 lines)\n  - Miscellaneous (1 lines)\n  - re-read-init-file (C-x C-r) (2 lines)\n  - abort (C-g) (6 lines)\n  - prefix-meta (ESC) (3 lines)\n  - revert-line (M-r) (2 lines)\n  - tilde-expand (M-&) (1 lines)\n  - set-mark (C-@, M-<space>) (2 lines)\n  - exchange-point-and-mark (C-x C-x) (2 lines)\n  - character-search (C-]) (2 lines)\n  - character-search-backward (M-C-]) (2 lines)\n  - skip-csi-sequence (6 lines)\n  - insert-comment (M-#) (8 lines)\n  - dump-functions (3 lines)\n  - dump-variables (3 lines)\n  - dump-macros (3 lines)\n  - emacs-editing-mode (C-e) (1 lines)\n  - vi-editing-mode (M-C-j) (2 lines)\n- **DEFAULT KEY BINDINGS** (10 lines) — 2 subsections\n  - Emacs Mode (92 lines)\n  - VI Mode bindings (101 lines)\n- **SEE ALSO** (4 lines)\n- **FILES** (3 lines)\n- **AUTHORS** (6 lines)\n- **BUG REPORTS** (12 lines)\n- **BUGS** (5 lines)\n\n## Full Content\n\n### NAME\n\nreadline - get a line from a user with editing\n\n### SYNOPSIS\n\n#### #include <stdio.h>\n\n#### #include <readline/readline.h>\n\n#### #include <readline/history.h>\n\nchar *\nreadline (const char *prompt);\n\n### COPYRIGHT\n\nReadline is Copyright (C) 1989-2020 Free Software Foundation,  Inc.\n\n### DESCRIPTION\n\nreadline  will  read  a  line  from the terminal and return it, using prompt as a prompt.  If\nprompt is NULL or the empty string, no prompt is issued.  The line returned is allocated with\nmalloc(3);  the  caller  must free it when finished.  The line returned has the final newline\nremoved, so only the text of the line remains.\n\nreadline offers editing capabilities while the user is entering the line.   By  default,  the\nline  editing  commands  are similar to those of emacs.  A vi-style line editing interface is\nalso available.\n\nThis manual page describes only the most basic use of readline.  Much more  functionality  is\navailable;  see  The GNU Readline Library and The GNU History Library for additional informa‐\ntion.\n\n### RETURN VALUE\n\nreadline returns the text of the line read.  A blank line returns the empty string.   If  EOF\nis  encountered  while reading a line, and the line is empty, NULL is returned.  If an EOF is\nread with a non-empty line, it is treated as a newline.\n\n### NOTATION\n\nAn Emacs-style notation is used to denote keystrokes.  Control keys  are  denoted  by  C-key,\ne.g.,  C-n  means Control-N.  Similarly, meta keys are denoted by M-key, so M-x means Meta-X.\n(On keyboards without a meta key, M-x means ESC x, i.e., press the Escape key then the x key.\nThis  makes ESC the meta prefix.  The combination M-C-x means ESC-Control-x, or press the Es‐\ncape key then hold the Control key while pressing the x key.)\n\nReadline commands may be given numeric arguments, which  normally  act  as  a  repeat  count.\nSometimes,  however,  it is the sign of the argument that is significant.  Passing a negative\nargument to a command that acts in the forward direction (e.g., kill-line) causes  that  com‐\nmand  to  act  in a backward direction.  Commands whose behavior with arguments deviates from\nthis are noted below.\n\nWhen a command is described as killing text, the text deleted is saved  for  possible  future\nretrieval  (yanking).   The killed text is saved in a kill ring.  Consecutive kills cause the\ntext to be accumulated into one unit, which can be yanked all at once.  Commands which do not\nkill text separate the chunks of text on the kill ring.\n\n### INITIALIZATION FILE\n\nReadline is customized by putting commands in an initialization file (the inputrc file).  The\nname of this file is taken from the value of the INPUTRC environment variable.  If that vari‐\nable  is  unset,  the default is ~/.inputrc.  If that file  does not exist or cannot be read,\nthe ultimate default is /etc/inputrc.  When a program which uses the readline library  starts\nup,  the init file is read, and the key bindings and variables are set.  There are only a few\nbasic constructs allowed in the readline init file.  Blank lines are ignored.   Lines  begin‐\nning with a # are comments.  Lines beginning with a $ indicate conditional constructs.  Other\nlines denote key bindings and variable settings.  Each program using this library may add its\nown commands and bindings.\n\nFor example, placing\n\nM-Control-u: universal-argument\nor\nC-Meta-u: universal-argument\n\ninto the inputrc would make M-C-u execute the readline command universal-argument.\n\nThe  following  symbolic  character  names are recognized while processing key bindings: DEL,\nESC, ESCAPE, LFD, NEWLINE, RET, RETURN, RUBOUT, SPACE, SPC, and TAB.\n\nIn addition to command names, readline allows keys to be bound to a string that  is  inserted\nwhen the key is pressed (a macro).\n\n#### Key Bindings\n\nThe  syntax for controlling key bindings in the inputrc file is simple.  All that is required\nis the name of the command or the text of a macro and a key sequence to which  it  should  be\nbound.   The  name may be specified in one of two ways: as a symbolic key name, possibly with\nMeta- or Control- prefixes, or as a key sequence.  The name and key sequence are separated by\na colon.  There can be no whitespace between the name and the colon.\n\nWhen  using the form keyname:function-name or macro, keyname is the name of a key spelled out\nin English.  For example:\n\nControl-u: universal-argument\nMeta-Rubout: backward-kill-word\nControl-o: \"> output\"\n\nIn the above example, C-u is bound to the function universal-argument, M-DEL is bound to  the\nfunction  backward-kill-word,  and  C-o is bound to run the macro expressed on the right hand\nside (that is, to insert the text ``> output'' into the line).\n\nIn the second form, \"keyseq\":function-name or macro, keyseq differs  from  keyname  above  in\nthat  strings denoting an entire key sequence may be specified by placing the sequence within\ndouble quotes.  Some GNU Emacs style key escapes can be used, as in  the  following  example,\nbut the symbolic character names are not recognized.\n\n\"\\C-u\": universal-argument\n\"\\C-x\\C-r\": re-read-init-file\n\"\\e[11~\": \"Function Key 1\"\n\nIn  this example, C-u is again bound to the function universal-argument.  C-x C-r is bound to\nthe function re-read-init-file, and ESC [ 1 1 ~ is bound to insert the  text  ``Function  Key\n1''.\n\nThe full set of GNU Emacs style escape sequences available when specifying key sequences is\n\\C-    control prefix\n\\M-    meta prefix\n\\e     an escape character\n\\\\     backslash\n\\\"     literal \", a double quote\n\\'     literal ', a single quote\n\nIn  addition  to  the  GNU Emacs style escape sequences, a second set of backslash escapes is\navailable:\n\\a     alert (bell)\n\\b     backspace\n\\d     delete\n\\f     form feed\n\\n     newline\n\\r     carriage return\n\\t     horizontal tab\n\\v     vertical tab\n\\nnn   the eight-bit character whose value is the octal value nnn (one to  three  dig‐\nits)\n\\xHH   the eight-bit character whose value is the hexadecimal value HH (one or two hex\ndigits)\n\nWhen entering the text of a macro, single or double quotes should be used to indicate a macro\ndefinition.   Unquoted  text  is assumed to be a function name.  In the macro body, the back‐\nslash escapes described above are expanded.  Backslash will quote any other character in  the\nmacro text, including \" and '.\n\nBash  allows  the  current  readline  key  bindings to be displayed or modified with the bind\nbuiltin command.  The editing mode may be switched during interactive use by using the -o op‐\ntion  to  the  set builtin command.  Other programs using this library provide similar mecha‐\nnisms.  The inputrc file may be edited and re-read if a program does not  provide  any  other\nmeans to incorporate new bindings.\n\n#### Variables\n\nReadline has variables that can be used to further customize its behavior.  A variable may be\nset in the inputrc file with a statement of the form\n\nset variable-name value\n\nExcept where noted, readline variables can take the values  On  or  Off  (without  regard  to\ncase).   Unrecognized  variable  names  are ignored.  When a variable value is read, empty or\nnull values, \"on\" (case-insensitive), and \"1\" are equivalent to On.   All  other  values  are\nequivalent to Off.  The variables and their default values are:\n\n#### bell-style (audible)\n\nControls  what happens when readline wants to ring the terminal bell.  If set to none,\nreadline never rings the bell.  If set to visible, readline uses a visible bell if one\nis available.  If set to audible, readline attempts to ring the terminal's bell.\n\n#### bind-tty-special-chars (On)\n\nIf set to On (the default), readline attempts to bind the control characters   treated\nspecially by the kernel's terminal driver to their readline equivalents.\n\n#### blink-matching-paren (Off)\n\nIf set to On, readline attempts to briefly move the cursor to an  opening  parenthesis\nwhen a closing parenthesis is inserted.\n\n#### colored-completion-prefix (Off)\n\nIf set to On, when listing completions, readline displays the common prefix of the set\nof possible completions using a different color.  The color definitions are taken from\nthe value of the LSCOLORS environment variable.\n\n#### colored-stats (Off)\n\nIf  set  to On, readline displays possible completions using different colors to indi‐\ncate their file type.  The color definitions are taken from the value of the LSCOLORS\nenvironment variable.\n\n#### comment-begin (``#'')\n\nThe  string  that  is inserted in vi mode when the insert-comment command is executed.\nThis command is bound to M-# in emacs mode and to # in vi command mode.\n\n#### completion-display-width (-1)\n\nThe number of screen columns used to display possible matches when performing  comple‐\ntion.   The  value is ignored if it is less than 0 or greater than the terminal screen\nwidth.  A value of 0 will cause matches to be displayed one  per  line.   The  default\nvalue is -1.\n\n#### completion-ignore-case (Off)\n\nIf set to On, readline performs filename matching and completion in a case-insensitive\nfashion.\n\n#### completion-map-case (Off)\n\nIf set to On, and completion-ignore-case is enabled, readline treats hyphens  (-)  and\nunderscores  ()  as equivalent when performing case-insensitive filename matching and\ncompletion.\n\n#### completion-prefix-display-length (0)\n\nThe length in characters of the common prefix of a list of possible  completions  that\nis displayed without modification.  When set to a value greater than zero, common pre‐\nfixes longer than this value are replaced with an ellipsis  when  displaying  possible\ncompletions.\n\n#### completion-query-items (100)\n\nThis  determines when the user is queried about viewing the number of possible comple‐\ntions generated by the possible-completions command.  It may be  set  to  any  integer\nvalue greater than or equal to zero.  If the number of possible completions is greater\nthan or equal to the value of this variable, readline will ask whether or not the user\nwishes  to  view  them;  otherwise they are simply listed on the terminal.  A negative\nvalue causes readline to never ask.\n\n#### convert-meta (On)\n\nIf set to On, readline will convert characters with the eighth bit set to an ASCII key\nsequence by stripping the eighth bit and prefixing it with an escape character (in ef‐\nfect, using escape as the meta prefix).  The default is On, but readline will  set  it\nto Off if the locale contains eight-bit characters.\n\n#### disable-completion (Off)\n\nIf  set  to  On, readline will inhibit word completion.  Completion characters will be\ninserted into the line as if they had been mapped to self-insert.\n\n#### echo-control-characters (On)\n\nWhen set to On, on operating systems that indicate they support it, readline echoes  a\ncharacter corresponding to a signal generated from the keyboard.\n\n#### editing-mode (emacs)\n\nControls  whether  readline  begins with a set of key bindings similar to Emacs or vi.\nediting-mode can be set to either emacs or vi.\n\n#### emacs-mode-string (@)\n\nIf the show-mode-in-prompt variable is enabled, this string is  displayed  immediately\nbefore  the  last  line  of the primary prompt when emacs editing mode is active.  The\nvalue is expanded like a key binding, so the standard set of meta-  and  control  pre‐\nfixes and backslash escape sequences is available.  Use the \\1 and \\2 escapes to begin\nand end sequences of non-printing characters, which can be used to  embed  a  terminal\ncontrol sequence into the mode string.\n\n#### enable-bracketed-paste (On)\n\nWhen  set  to On, readline will configure the terminal in a way that will enable it to\ninsert each paste into the editing buffer as a single string of characters, instead of\ntreating  each  character  as if it had been read from the keyboard.  This can prevent\npasted characters from being interpreted as editing commands.\n\n#### enable-keypad (Off)\n\nWhen set to On, readline will try to enable the application keypad when it is  called.\nSome systems need this to enable the arrow keys.\n\n#### enable-meta-key (On)\n\nWhen  set to On, readline will try to enable any meta modifier key the terminal claims\nto support when it is called.  On many terminals, the meta key is used to send  eight-\nbit characters.\n\n#### expand-tilde (Off)\n\nIf set to On, tilde expansion is performed when readline attempts word completion.\n\n#### history-preserve-point (Off)\n\nIf  set  to  On, the history code attempts to place point at the same location on each\nhistory line retrieved with previous-history or next-history.\n\n#### history-size (unset)\n\nSet the maximum number of history entries saved in the history list.  If set to  zero,\nany  existing  history  entries are deleted and no new entries are saved.  If set to a\nvalue less than zero, the number of history entries is not limited.  By  default,  the\nnumber  of  history entries is not limited.  If an attempt is made to set history-size\nto a non-numeric value, the maximum number of history entries will be set to 500.\n\n#### horizontal-scroll-mode (Off)\n\nWhen set to On, makes readline use a single line for display, scrolling the input hor‐\nizontally  on a single screen line when it becomes longer than the screen width rather\nthan wrapping to a new line.  This setting is automatically enabled for  terminals  of\nheight 1.\n\n#### input-meta (Off)\n\nIf  set  to  On,  readline will enable eight-bit input (that is, it will not clear the\neighth bit in the characters it reads), regardless of what the terminal claims it  can\nsupport.   The name meta-flag is a synonym for this variable.  The default is Off, but\nreadline will set it to On if the locale contains eight-bit characters.\n\n#### isearch-terminators (``C-[ C-J'')\n\nThe string of characters that should terminate an incremental  search  without  subse‐\nquently  executing  the character as a command.  If this variable has not been given a\nvalue, the characters ESC and C-J will terminate an incremental search.\n\n#### keymap (emacs)\n\nSet the current readline keymap.  The set of legal keymap names is emacs,  emacs-stan‐\ndard,  emacs-meta,  emacs-ctlx, vi, vi-move, vi-command, and vi-insert.  vi is equiva‐\nlent to vi-command; emacs is equivalent  to  emacs-standard.   The  default  value  is\nemacs.  The value of editing-mode also affects the default keymap.\n\n#### keyseq-timeout (500)\n\nSpecifies  the  duration  readline will wait for a character when reading an ambiguous\nkey sequence (one that can form a complete key sequence using the input read  so  far,\nor  can  take additional input to complete a longer key sequence).  If no input is re‐\nceived within the timeout, readline will use the shorter but  complete  key  sequence.\nThe  value  is  specified in milliseconds, so a value of 1000 means that readline will\nwait one second for additional input.  If this variable is set to a value less than or\nequal  to  zero,  or  to  a non-numeric value, readline will wait until another key is\npressed to decide which key sequence to complete.\n\n#### mark-directories (On)\n\nIf set to On, completed directory names have a slash appended.\n\n#### mark-modified-lines (Off)\n\nIf set to On, history lines that have been modified are displayed with a preceding as‐\nterisk (*).\n\n#### mark-symlinked-directories (Off)\n\nIf set to On, completed names which are symbolic links to directories have a slash ap‐\npended (subject to the value of mark-directories).\n\n#### match-hidden-files (On)\n\nThis variable, when set to On, causes readline to match files whose names begin with a\n`.'  (hidden  files)  when performing filename completion.  If set to Off, the leading\n`.' must be supplied by the user in the filename to be completed.\n\n#### menu-complete-display-prefix (Off)\n\nIf set to On, menu completion displays the common prefix of the list of possible  com‐\npletions (which may be empty) before cycling through the list.\n\n#### output-meta (Off)\n\nIf set to On, readline will display characters with the eighth bit set directly rather\nthan as a meta-prefixed escape sequence.  The default is Off, but readline will set it\nto On if the locale contains eight-bit characters.\n\n#### page-completions (On)\n\nIf set to On, readline uses an internal more-like pager to display a screenful of pos‐\nsible completions at a time.\n\n#### print-completions-horizontally (Off)\n\nIf set to On, readline will display completions with matches  sorted  horizontally  in\nalphabetical order, rather than down the screen.\n\n#### revert-all-at-newline (Off)\n\nIf  set  to  On, readline will undo all changes to history lines before returning when\naccept-line is executed.  By default, history lines may be modified and  retain  indi‐\nvidual undo lists across calls to readline.\n\n#### show-all-if-ambiguous (Off)\n\nThis  alters  the  default  behavior of the completion functions.  If set to On, words\nwhich have more than one possible completion cause the matches to  be  listed  immedi‐\nately instead of ringing the bell.\n\n#### show-all-if-unmodified (Off)\n\nThis  alters  the default behavior of the completion functions in a fashion similar to\nshow-all-if-ambiguous.  If set to On, words which have more than one possible  comple‐\ntion  without  any possible partial completion (the possible completions don't share a\ncommon prefix) cause the matches to be listed immediately instead of ringing the bell.\n\n#### show-mode-in-prompt (Off)\n\nIf set to On, add a string to the beginning of the prompt indicating the editing mode:\nemacs,  vi  command,  or  vi  insertion.   The  mode  strings are user-settable (e.g.,\nemacs-mode-string).\n\n#### skip-completed-text (Off)\n\nIf set to On, this alters the default completion  behavior  when  inserting  a  single\nmatch  into  the line.  It's only active when performing completion in the middle of a\nword.  If enabled, readline does not insert characters from the completion that  match\ncharacters  after point in the word being completed, so portions of the word following\nthe cursor are not duplicated.\n\n#### vi-cmd-mode-string ((cmd))\n\nIf the show-mode-in-prompt variable is enabled, this string is  displayed  immediately\nbefore  the last line of the primary prompt when vi editing mode is active and in com‐\nmand mode.  The value is expanded like a key binding, so the standard set of meta- and\ncontrol  prefixes  and backslash escape sequences is available.  Use the \\1 and \\2 es‐\ncapes to begin and end sequences of non-printing characters, which can be used to  em‐\nbed a terminal control sequence into the mode string.\n\n#### vi-ins-mode-string ((ins))\n\nIf  the  show-mode-in-prompt variable is enabled, this string is displayed immediately\nbefore the last line of the primary prompt when vi editing mode is active and  in  in‐\nsertion  mode.  The value is expanded like a key binding, so the standard set of meta-\nand control prefixes and backslash escape sequences is available.  Use the \\1  and  \\2\nescapes  to  begin  and end sequences of non-printing characters, which can be used to\nembed a terminal control sequence into the mode string.\n\n#### visible-stats (Off)\n\nIf set to On, a character denoting a file's type as reported by stat(2) is appended to\nthe filename when listing possible completions.\n\n#### Conditional Constructs\n\nReadline  implements  a facility similar in spirit to the conditional compilation features of\nthe C preprocessor which allows key bindings and variable settings to be performed as the re‐\nsult of tests.  There are four parser directives used.\n\n$if    The  $if  construct allows bindings to be made based on the editing mode, the terminal\nbeing used, or the application using readline.  The text of the test, after  any  com‐\nparison  operator,  extends to the end of the line; unless otherwise noted, no charac‐\nters are required to isolate it.\n\nmode   The mode= form of the $if directive is used to  test  whether  readline  is  in\nemacs or vi mode.  This may be used in conjunction with the set keymap command,\nfor instance, to set bindings in the emacs-standard and emacs-ctlx keymaps only\nif readline is starting out in emacs mode.\n\nterm   The  term=  form may be used to include terminal-specific key bindings, perhaps\nto bind the key sequences output by the terminal's function keys.  The word  on\nthe right side of the = is tested against the full name of the terminal and the\nportion of the terminal name before the first -.  This allows sun to match both\nsun and sun-cmd, for instance.\n\nversion\nThe  version  test may be used to perform comparisons against specific readline\nversions.  The version expands to the current readline  version.   The  set  of\ncomparison  operators  includes =, (and ==), !=, <=, >=, <, and >.  The version\nnumber supplied on the right side of the operator consists of a  major  version\nnumber,  an  optional decimal point, and an optional minor version (e.g., 7.1).\nIf the minor version is omitted, it is assumed to be 0.  The  operator  may  be\nseparated  from  the  string  version  and  from the version number argument by\nwhitespace.\n\napplication\nThe application construct is used  to  include  application-specific  settings.\nEach  program using the readline library sets the application name, and an ini‐\ntialization file can test for a particular value.  This could be used  to  bind\nkey  sequences  to  functions useful for a specific program.  For instance, the\nfollowing command adds a key sequence that quotes the current or previous  word\nin bash:\n\n$if Bash\n# Quote the current or previous word\n\"\\C-xq\": \"\\eb\\\"\\ef\\\"\"\n$endif\n\nvariable\nThe  variable  construct  provides simple equality tests for readline variables\nand values.  The permitted comparison operators are =, ==, and !=.   The  vari‐\nable name must be separated from the comparison operator by whitespace; the op‐\nerator may be separated from the value on the right hand  side  by  whitespace.\nBoth  string  and  boolean  variables  may be tested. Boolean variables must be\ntested against the values on and off.\n\n$endif This command, as seen in the previous example, terminates an $if command.\n\n$else  Commands in this branch of the $if directive are executed if the test fails.\n\n#### $include\n\nThis directive takes a single filename as an argument and reads commands and  bindings\nfrom that file.  For example, the following directive would read /etc/inputrc:\n\n$include  /etc/inputrc\n\n### SEARCHING\n\nReadline  provides  commands for searching through the command history for lines containing a\nspecified string.  There are two search modes: incremental and non-incremental.\n\nIncremental searches begin before the user has finished typing the search  string.   As  each\ncharacter  of  the  search string is typed, readline displays the next entry from the history\nmatching the string typed so far.  An incremental search requires only as many characters  as\nneeded to find the desired history entry.  To search backward in the history for a particular\nstring, type C-r.  Typing C-s searches forward through the history.  The  characters  present\nin the value of the isearch-terminators variable are used to terminate an incremental search.\nIf that variable has not been assigned a value the Escape and C-J characters  will  terminate\nan  incremental  search.  C-G will abort an incremental search and restore the original line.\nWhen the search is terminated, the history entry containing the  search  string  becomes  the\ncurrent line.\n\nTo  find  other  matching  entries in the history list, type C-s or C-r as appropriate.  This\nwill search backward or forward in the history for the next line matching the  search  string\ntyped  so  far.  Any other key sequence bound to a readline command will terminate the search\nand execute that command.  For instance, a newline will terminate the search and  accept  the\nline, thereby executing the command from the history list.  A movement command will terminate\nthe search, make the last line found the current line, and begin editing.\n\nNon-incremental searches read the entire search string before starting to search for matching\nhistory  lines.  The search string may be typed by the user or be part of the contents of the\ncurrent line.\n\n### EDITING COMMANDS\n\nThe following is a list of the names of the commands and the default key sequences  to  which\nthey are bound.  Command names without an accompanying key sequence are unbound by default.\n\nIn  the  following descriptions, point refers to the current cursor position, and mark refers\nto a cursor position saved by the set-mark command.  The text between the point and  mark  is\nreferred to as the region.\n\n#### Commands for Moving\n\n#### beginning-of-line (C-a)\n\nMove to the start of the current line.\n\n#### end-of-line (C-e)\n\nMove to the end of the line.\n\n#### forward-char (C-f)\n\nMove forward a character.\n\n#### backward-char (C-b)\n\nMove back a character.\n\n#### forward-word (M-f)\n\nMove  forward to the end of the next word.  Words are composed of alphanumeric charac‐\nters (letters and digits).\n\n#### backward-word (M-b)\n\nMove back to the start of the current or previous word.  Words  are  composed  of  al‐\nphanumeric characters (letters and digits).\n\n#### previous-screen-line\n\nAttempt  to  move  point  to  the same physical screen column on the previous physical\nscreen line. This will not have the desired effect if the current Readline  line  does\nnot  take up more than one physical line or if point is not greater than the length of\nthe prompt plus the screen width.\n\n#### next-screen-line\n\nAttempt to move point to the same physical screen column on the next  physical  screen\nline. This will not have the desired effect if the current Readline line does not take\nup more than one physical line or if the length of the current Readline  line  is  not\ngreater than the length of the prompt plus the screen width.\n\n#### clear-display (M-C-l)\n\nClear  the  screen and, if possible, the terminal's scrollback buffer, then redraw the\ncurrent line, leaving the current line at the top of the screen.\n\n#### clear-screen (C-l)\n\nClear the screen, then redraw the current line, leaving the current line at the top of\nthe screen.  With an argument, refresh the current line without clearing the screen.\n\n#### redraw-current-line\n\nRefresh the current line.\n\n#### Commands for Manipulating the History\n\n#### accept-line (Newline, Return)\n\nAccept  the line regardless of where the cursor is.  If this line is non-empty, it may\nbe added to the history list for future recall with addhistory().  If the line  is  a\nmodified history line, the history line is restored to its original state.\n\n#### previous-history (C-p)\n\nFetch the previous command from the history list, moving back in the list.\n\n#### next-history (C-n)\n\nFetch the next command from the history list, moving forward in the list.\n\n#### beginning-of-history (M-<)\n\nMove to the first line in the history.\n\n#### end-of-history (M->)\n\nMove to the end of the input history, i.e., the line currently being entered.\n\n#### reverse-search-history (C-r)\n\nSearch  backward  starting  at the current line and moving `up' through the history as\nnecessary.  This is an incremental search.\n\n#### forward-search-history (C-s)\n\nSearch forward starting at the current line and moving `down' through the  history  as\nnecessary.  This is an incremental search.\n\n#### non-incremental-reverse-search-history (M-p)\n\nSearch backward through the history starting at the current line using a non-incremen‐\ntal search for a string supplied by the user.\n\n#### non-incremental-forward-search-history (M-n)\n\nSearch forward through the history using a non-incremental search for  a  string  sup‐\nplied by the user.\n\n#### history-search-backward\n\nSearch  backward through the history for the string of characters between the start of\nthe current line and the current cursor position (the point).  The search string  must\nmatch at the beginning of a history line.  This is a non-incremental search.\n\n#### history-search-forward\n\nSearch  forward  through the history for the string of characters between the start of\nthe current line and the point.  The search string must match at the  beginning  of  a\nhistory line.  This is a non-incremental search.\n\n#### history-substring-search-backward\n\nSearch  backward through the history for the string of characters between the start of\nthe current line and the current cursor position (the point).  The search  string  may\nmatch anywhere in a history line.  This is a non-incremental search.\n\n#### history-substring-search-forward\n\nSearch  forward  through the history for the string of characters between the start of\nthe current line and the point.  The search string may match  anywhere  in  a  history\nline.  This is a non-incremental search.\n\n#### yank-nth-arg (M-C-y)\n\nInsert the first argument to the previous command (usually the second word on the pre‐\nvious line) at point.  With an argument n, insert the nth word from the previous  com‐\nmand  (the  words in the previous command begin with word 0).  A negative argument in‐\nserts the nth word from the end of the previous command.  Once the argument n is  com‐\nputed, the argument is extracted as if the \"!n\" history expansion had been specified.\nyank-last-arg (M-., M-)\nInsert  the  last argument to the previous command (the last word of the previous his‐\ntory entry).  With a numeric argument, behave exactly like  yank-nth-arg.   Successive\ncalls to yank-last-arg move back through the history list, inserting the last word (or\nthe word specified by the argument to the first call) of each line in turn.   Any  nu‐\nmeric  argument  supplied  to  these successive calls determines the direction to move\nthrough the history.  A negative argument switches the direction through  the  history\n(back  or forward).  The history expansion facilities are used to extract the last ar‐\ngument, as if the \"!$\" history expansion had been specified.\n\n#### operate-and-get-next (C-o)\n\nAccept the current line for return to the calling application as if a newline had been\nentered,  and  fetch  the  next line relative to the current line from the history for\nediting.  A numeric argument, if supplied, specifies the history entry to use  instead\nof the current line.\n\n#### Commands for Changing Text\n\nend-of-file (usually C-d)\nThe  character indicating end-of-file as set, for example, by ``stty''.  If this char‐\nacter is read when there are no characters on the line, and point is at the  beginning\nof the line, Readline interprets it as the end of input and returns EOF.\n\n#### delete-char (C-d)\n\nDelete the character at point.  If this function is bound to the same character as the\ntty EOF character, as C-d commonly is, see above for the effects.\n\n#### backward-delete-char (Rubout)\n\nDelete the character behind the cursor.  When  given  a  numeric  argument,  save  the\ndeleted text on the kill ring.\n\n#### forward-backward-delete-char\n\nDelete the character under the cursor, unless the cursor is at the end of the line, in\nwhich case the character behind the cursor is deleted.\n\n#### quoted-insert (C-q, C-v)\n\nAdd the next character that you type to the line verbatim.   This  is  how  to  insert\ncharacters like C-q, for example.\n\n#### tab-insert (M-TAB)\n\nInsert a tab character.\n\n#### self-insert (a, b, A, 1, !, ...)\n\nInsert the character typed.\n\n#### transpose-chars (C-t)\n\nDrag the character before point forward over the character at point, moving point for‐\nward as well.  If point is at the end of the line, then this transposes the two  char‐\nacters before point.  Negative arguments have no effect.\n\n#### transpose-words (M-t)\n\nDrag  the  word before point past the word after point, moving point over that word as\nwell.  If point is at the end of the line, this transposes the last two words  on  the\nline.\n\n#### upcase-word (M-u)\n\nUppercase  the  current  (or following) word.  With a negative argument, uppercase the\nprevious word, but do not move point.\n\n#### downcase-word (M-l)\n\nLowercase the current (or following) word.  With a negative  argument,  lowercase  the\nprevious word, but do not move point.\n\n#### capitalize-word (M-c)\n\nCapitalize  the current (or following) word.  With a negative argument, capitalize the\nprevious word, but do not move point.\n\n#### overwrite-mode\n\nToggle overwrite mode.  With an explicit positive numeric argument, switches to  over‐\nwrite  mode.  With an explicit non-positive numeric argument, switches to insert mode.\nThis command affects only emacs mode; vi mode does overwrite differently.   Each  call\nto  readline() starts in insert mode.  In overwrite mode, characters bound to self-in‐‐\nsert replace the text at point rather than pushing the text to the right.   Characters\nbound to backward-delete-char replace the character before point with a space.  By de‐\nfault, this command is unbound.\n\n#### Killing and Yanking\n\n#### kill-line (C-k)\n\nKill the text from point to the end of the line.\n\n#### backward-kill-line (C-x Rubout)\n\nKill backward to the beginning of the line.\n\n#### unix-line-discard (C-u)\n\nKill backward from point to the beginning of the line.  The killed text  is  saved  on\nthe kill-ring.\n\n#### kill-whole-line\n\nKill all characters on the current line, no matter where point is.\n\n#### kill-word (M-d)\n\nKill  from  point  the end of the current word, or if between words, to the end of the\nnext word.  Word boundaries are the same as those used by forward-word.\n\n#### backward-kill-word (M-Rubout)\n\nKill the word behind point.  Word boundaries are the  same  as  those  used  by  back‐‐\nward-word.\n\n#### unix-word-rubout (C-w)\n\nKill  the word behind point, using white space as a word boundary.  The killed text is\nsaved on the kill-ring.\n\n#### unix-filename-rubout\n\nKill the word behind point, using white space and the  slash  character  as  the  word\nboundaries.  The killed text is saved on the kill-ring.\n\n#### delete-horizontal-space (M-\\)\n\nDelete all spaces and tabs around point.\n\n#### kill-region\n\nKill  the  text  between the point and mark (saved cursor position).  This text is re‐\nferred to as the region.\n\n#### copy-region-as-kill\n\nCopy the text in the region to the kill buffer.\n\n#### copy-backward-word\n\nCopy the word before point to the kill buffer.  The word boundaries are  the  same  as\nbackward-word.\n\n#### copy-forward-word\n\nCopy the word following point to the kill buffer.  The word boundaries are the same as\nforward-word.\n\n#### yank (C-y)\n\nYank the top of the kill ring into the buffer at point.\n\n#### yank-pop (M-y)\n\nRotate the kill ring, and yank the new top.  Only works following yank or yank-pop.\n\n#### Numeric Arguments\n\n#### digit-argument (M-0, M-1, ..., M--)\n\nAdd this digit to the argument already accumulating, or start  a  new  argument.   M--\nstarts a negative argument.\n\n#### universal-argument\n\nThis  is  another  way  to specify an argument.  If this command is followed by one or\nmore digits, optionally with a leading minus sign, those digits define  the  argument.\nIf  the command is followed by digits, executing universal-argument again ends the nu‐\nmeric argument, but is otherwise ignored.  As a special case, if this command is imme‐\ndiately  followed  by  a character that is neither a digit or minus sign, the argument\ncount for the next command is multiplied by four.  The  argument  count  is  initially\none, so executing this function the first time makes the argument count four, a second\ntime makes the argument count sixteen, and so on.\n\n#### Completing\n\n#### complete (TAB)\n\nAttempt to perform completion on the text before point.  The  actual  completion  per‐\nformed  is application-specific.  Bash, for instance, attempts completion treating the\ntext as a variable (if the text begins with $), username (if the text begins with  ~),\nhostname  (if the text begins with @), or command (including aliases and functions) in\nturn.  If none of these produces a match, filename completion is attempted.   Gdb,  on\nthe  other  hand,  allows  completion of program functions and variables, and only at‐\ntempts filename completion under certain circumstances.\n\n#### possible-completions (M-?)\n\nList the possible completions of the text before point.  When displaying  completions,\nreadline  sets  the number of columns used for display to the value of completion-dis‐‐\nplay-width, the value of the environment variable COLUMNS, or  the  screen  width,  in\nthat order.\ninsert-completions (M-*)\nInsert all completions of the text before point that would have been generated by pos‐‐\nsible-completions.\n\n#### menu-complete\n\nSimilar to complete, but replaces the word to be completed with a  single  match  from\nthe  list  of possible completions.  Repeated execution of menu-complete steps through\nthe list of possible completions, inserting each match in turn.  At  the  end  of  the\nlist  of  completions, the bell is rung (subject to the setting of bell-style) and the\noriginal text is restored.  An argument of n moves n positions forward in the list  of\nmatches; a negative argument may be used to move backward through the list.  This com‐\nmand is intended to be bound to TAB, but is unbound by default.\n\n#### menu-complete-backward\n\nIdentical to menu-complete, but moves backward through the list  of  possible  comple‐\ntions,  as  if  menu-complete had been given a negative argument.  This command is un‐\nbound by default.\n\n#### delete-char-or-list\n\nDeletes the character under the cursor if not at the beginning  or  end  of  the  line\n(like  delete-char).   If at the end of the line, behaves identically to possible-com‐‐\npletions.\n\n#### Keyboard Macros\n\n#### start-kbd-macro (C-x ()\n\nBegin saving the characters typed into the current keyboard macro.\n\n#### end-kbd-macro (C-x ))\n\nStop saving the characters typed into the current keyboard macro and store the defini‐\ntion.\n\n#### call-last-kbd-macro (C-x e)\n\nRe-execute  the last keyboard macro defined, by making the characters in the macro ap‐\npear as if typed at the keyboard.\n\n#### print-last-kbd-macro ()\n\nPrint the last keyboard macro defined in a format suitable for the inputrc file.\n\n#### Miscellaneous\n\n#### re-read-init-file (C-x C-r)\n\nRead in the contents of the inputrc file, and incorporate any bindings or variable as‐\nsignments found there.\n\n#### abort (C-g)\n\nAbort the current editing command and ring the terminal's bell (subject to the setting\nof bell-style).\ndo-lowercase-version (M-A, M-B, M-x, ...)\nIf the metafied character x is uppercase, run the command that is bound to the  corre‐\nsponding metafied lowercase character.  The behavior is undefined if x is already low‐\nercase.\n\n#### prefix-meta (ESC)\n\nMetafy the next character typed.  ESC f is equivalent to Meta-f.\nundo (C-, C-x C-u)\nIncremental undo, separately remembered for each line.\n\n#### revert-line (M-r)\n\nUndo all changes made to this line.  This is like executing the  undo  command  enough\ntimes to return the line to its initial state.\n\n#### tilde-expand (M-&)\n\nPerform tilde expansion on the current word.\n\n#### set-mark (C-@, M-<space>)\n\nSet the mark to the point.  If a numeric argument is supplied, the mark is set to that\nposition.\n\n#### exchange-point-and-mark (C-x C-x)\n\nSwap the point with the mark.  The current cursor position is set to the  saved  posi‐\ntion, and the old cursor position is saved as the mark.\n\n#### character-search (C-])\n\nA  character  is  read and point is moved to the next occurrence of that character.  A\nnegative count searches for previous occurrences.\n\n#### character-search-backward (M-C-])\n\nA character is read and point is moved to the previous occurrence of  that  character.\nA negative count searches for subsequent occurrences.\n\n#### skip-csi-sequence\n\nRead  enough characters to consume a multi-key sequence such as those defined for keys\nlike Home and End.  Such sequences begin with a Control Sequence Indicator (CSI), usu‐\nally  ESC-[.   If  this  sequence is bound to \"\\[\", keys producing such sequences will\nhave no effect unless explicitly bound to a readline  command,  instead  of  inserting\nstray  characters  into  the  editing buffer.  This is unbound by default, but usually\nbound to ESC-[.\n\n#### insert-comment (M-#)\n\nWithout a numeric argument, the value of the readline comment-begin  variable  is  in‐\nserted  at the beginning of the current line.  If a numeric argument is supplied, this\ncommand acts as a toggle: if the characters at the beginning of the line do not  match\nthe  value  of  comment-begin, the value is inserted, otherwise the characters in com‐‐\nment-begin are deleted from the beginning of the line.  In either case,  the  line  is\naccepted as if a newline had been typed.  The default value of comment-begin makes the\ncurrent line a shell comment.  If a numeric argument causes the comment  character  to\nbe removed, the line will be executed by the shell.\n\n#### dump-functions\n\nPrint all of the functions and their key bindings to the readline output stream.  If a\nnumeric argument is supplied, the output is formatted in such a way  that  it  can  be\nmade part of an inputrc file.\n\n#### dump-variables\n\nPrint  all  of  the settable variables and their values to the readline output stream.\nIf a numeric argument is supplied, the output is formatted in such a way that  it  can\nbe made part of an inputrc file.\n\n#### dump-macros\n\nPrint  all  of the readline key sequences bound to macros and the strings they output.\nIf a numeric argument is supplied, the output is formatted in such a way that  it  can\nbe made part of an inputrc file.\n\n#### emacs-editing-mode (C-e)\n\nWhen in vi command mode, this causes a switch to emacs editing mode.\n\n#### vi-editing-mode (M-C-j)\n\nWhen in emacs editing mode, this causes a switch to vi editing mode.\n\n### DEFAULT KEY BINDINGS\n\nThe following is a list of the default emacs and vi bindings.  Characters with the eighth bit\nset are written as M-<character>, and are referred to as metafied characters.  The  printable\nASCII  characters  not  mentioned  in  the  list  of emacs standard bindings are bound to the\nself-insert function, which just inserts the given character into the input line.  In vi  in‐\nsertion mode, all characters not specifically mentioned are bound to self-insert.  Characters\nassigned to signal generation by stty(1) or the terminal driver, such as C-Z or  C-C,  retain\nthat  function.   Upper  and lower case metafied characters are bound to the same function in\nthe emacs mode meta keymap.  The remaining characters are unbound, which causes  readline  to\nring the bell (subject to the setting of the bell-style variable).\n\n#### Emacs Mode\n\nEmacs Standard bindings\n\n\"C-@\"  set-mark\n\"C-A\"  beginning-of-line\n\"C-B\"  backward-char\n\"C-D\"  delete-char\n\"C-E\"  end-of-line\n\"C-F\"  forward-char\n\"C-G\"  abort\n\"C-H\"  backward-delete-char\n\"C-I\"  complete\n\"C-J\"  accept-line\n\"C-K\"  kill-line\n\"C-L\"  clear-screen\n\"C-M\"  accept-line\n\"C-N\"  next-history\n\"C-P\"  previous-history\n\"C-Q\"  quoted-insert\n\"C-R\"  reverse-search-history\n\"C-S\"  forward-search-history\n\"C-T\"  transpose-chars\n\"C-U\"  unix-line-discard\n\"C-V\"  quoted-insert\n\"C-W\"  unix-word-rubout\n\"C-Y\"  yank\n\"C-]\"  character-search\n\"C-\"  undo\n\" \" to \"/\"  self-insert\n\"0\"  to \"9\"  self-insert\n\":\"  to \"~\"  self-insert\n\"C-?\"  backward-delete-char\n\nEmacs Meta bindings\n\n\"M-C-G\"  abort\n\"M-C-H\"  backward-kill-word\n\"M-C-I\"  tab-insert\n\"M-C-J\"  vi-editing-mode\n\"M-C-L\"  clear-display\n\"M-C-M\"  vi-editing-mode\n\"M-C-R\"  revert-line\n\"M-C-Y\"  yank-nth-arg\n\"M-C-[\"  complete\n\"M-C-]\"  character-search-backward\n\"M-space\"  set-mark\n\"M-#\"  insert-comment\n\"M-&\"  tilde-expand\n\"M-*\"  insert-completions\n\"M--\"  digit-argument\n\"M-.\"  yank-last-arg\n\"M-0\"  digit-argument\n\"M-1\"  digit-argument\n\"M-2\"  digit-argument\n\"M-3\"  digit-argument\n\"M-4\"  digit-argument\n\"M-5\"  digit-argument\n\"M-6\"  digit-argument\n\"M-7\"  digit-argument\n\"M-8\"  digit-argument\n\"M-9\"  digit-argument\n\"M-<\"  beginning-of-history\n\"M-=\"  possible-completions\n\"M->\"  end-of-history\n\"M-?\"  possible-completions\n\"M-B\"  backward-word\n\"M-C\"  capitalize-word\n\"M-D\"  kill-word\n\"M-F\"  forward-word\n\"M-L\"  downcase-word\n\"M-N\"  non-incremental-forward-search-history\n\"M-P\"  non-incremental-reverse-search-history\n\"M-R\"  revert-line\n\"M-T\"  transpose-words\n\"M-U\"  upcase-word\n\"M-Y\"  yank-pop\n\"M-\\\"  delete-horizontal-space\n\"M-~\"  tilde-expand\n\"M-C-?\"  backward-kill-word\n\"M-\"  yank-last-arg\n\nEmacs Control-X bindings\n\n\"C-XC-G\"  abort\n\"C-XC-R\"  re-read-init-file\n\"C-XC-U\"  undo\n\"C-XC-X\"  exchange-point-and-mark\n\"C-X(\"  start-kbd-macro\n\"C-X)\"  end-kbd-macro\n\"C-XE\"  call-last-kbd-macro\n\"C-XC-?\"  backward-kill-line\n\n#### VI Mode bindings\n\nVI Insert Mode functions\n\n\"C-D\"  vi-eof-maybe\n\"C-H\"  backward-delete-char\n\"C-I\"  complete\n\"C-J\"  accept-line\n\"C-M\"  accept-line\n\"C-R\"  reverse-search-history\n\"C-S\"  forward-search-history\n\"C-T\"  transpose-chars\n\"C-U\"  unix-line-discard\n\"C-V\"  quoted-insert\n\"C-W\"  unix-word-rubout\n\"C-Y\"  yank\n\"C-[\"  vi-movement-mode\n\"C-\"  undo\n\" \" to \"~\"  self-insert\n\"C-?\"  backward-delete-char\n\nVI Command Mode functions\n\n\"C-D\"  vi-eof-maybe\n\"C-E\"  emacs-editing-mode\n\"C-G\"  abort\n\"C-H\"  backward-char\n\"C-J\"  accept-line\n\"C-K\"  kill-line\n\"C-L\"  clear-screen\n\"C-M\"  accept-line\n\"C-N\"  next-history\n\"C-P\"  previous-history\n\"C-Q\"  quoted-insert\n\"C-R\"  reverse-search-history\n\"C-S\"  forward-search-history\n\"C-T\"  transpose-chars\n\"C-U\"  unix-line-discard\n\"C-V\"  quoted-insert\n\"C-W\"  unix-word-rubout\n\"C-Y\"  yank\n\"C-\"  vi-undo\n\" \"  forward-char\n\"#\"  insert-comment\n\"$\"  end-of-line\n\"%\"  vi-match\n\"&\"  vi-tilde-expand\n\"*\"  vi-complete\n\"+\"  next-history\n\",\"  vi-char-search\n\"-\"  previous-history\n\".\"  vi-redo\n\"/\"  vi-search\n\"0\"  beginning-of-line\n\"1\" to \"9\"  vi-arg-digit\n\";\"  vi-char-search\n\"=\"  vi-complete\n\"?\"  vi-search\n\"A\"  vi-append-eol\n\"B\"  vi-prev-word\n\"C\"  vi-change-to\n\"D\"  vi-delete-to\n\"E\"  vi-end-word\n\"F\"  vi-char-search\n\"G\"  vi-fetch-history\n\"I\"  vi-insert-beg\n\"N\"  vi-search-again\n\"P\"  vi-put\n\"R\"  vi-replace\n\"S\"  vi-subst\n\"T\"  vi-char-search\n\"U\"  revert-line\n\"W\"  vi-next-word\n\"X\"  backward-delete-char\n\"Y\"  vi-yank-to\n\"\\\"  vi-complete\n\"^\"  vi-first-print\n\"\"  vi-yank-arg\n\"`\"  vi-goto-mark\n\"a\"  vi-append-mode\n\"b\"  vi-prev-word\n\"c\"  vi-change-to\n\"d\"  vi-delete-to\n\"e\"  vi-end-word\n\"f\"  vi-char-search\n\"h\"  backward-char\n\"i\"  vi-insertion-mode\n\"j\"  next-history\n\"k\"  prev-history\n\"l\"  forward-char\n\"m\"  vi-set-mark\n\"n\"  vi-search-again\n\"p\"  vi-put\n\"r\"  vi-change-char\n\"s\"  vi-subst\n\"t\"  vi-char-search\n\"u\"  vi-undo\n\"w\"  vi-next-word\n\"x\"  vi-delete\n\"y\"  vi-yank-to\n\"|\"  vi-column\n\"~\"  vi-change-case\n\n### SEE ALSO\n\nThe Gnu Readline Library, Brian Fox and Chet Ramey\nThe Gnu History Library, Brian Fox and Chet Ramey\nbash(1)\n\n### FILES\n\n~/.inputrc\nIndividual readline initialization file\n\n### AUTHORS\n\nBrian Fox, Free Software Foundation\nbfox@gnu.org\n\nChet Ramey, Case Western Reserve University\nchet.ramey@case.edu\n\n### BUG REPORTS\n\nIf you find a bug in readline, you should report it.  But first, you should make sure that it\nreally is a bug, and that it appears in the latest version of the readline library  that  you\nhave.\n\nOnce  you  have  determined  that  a  bug  actually  exists,  mail  a bug report to bug-read‐\nline@gnu.org.  If you have a fix, you are welcome to mail  that  as  well!   Suggestions  and\n`philosophical'  bug  reports  may  be mailed to bug-readline@gnu.org or posted to the Usenet\nnewsgroup gnu.bash.bug.\n\nComments  and  bug  reports   concerning   this   manual   page   should   be   directed   to\nchet.ramey@case.edu.\n\n### BUGS\n\nIt's too big and too slow.\n\n\n\nGNU Readline 8.1                           2020 October 29                               READLINE(3)\n\n"
        }
    ],
    "structuredContent": {
        "command": "readline",
        "section": "3",
        "mode": "man",
        "summary": "readline - get a line from a user with editing",
        "synopsis": "",
        "flags": [],
        "examples": [],
        "see_also": [
            {
                "name": "bash",
                "section": "1",
                "url": "https://www.chedong.com/phpMan.php/man/bash/1/json"
            }
        ],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 1,
                "subsections": [
                    {
                        "name": "#include <stdio.h>",
                        "lines": 1
                    },
                    {
                        "name": "#include <readline/readline.h>",
                        "lines": 1
                    },
                    {
                        "name": "#include <readline/history.h>",
                        "lines": 3
                    }
                ]
            },
            {
                "name": "COPYRIGHT",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 13,
                "subsections": []
            },
            {
                "name": "RETURN VALUE",
                "lines": 4,
                "subsections": []
            },
            {
                "name": "NOTATION",
                "lines": 17,
                "subsections": []
            },
            {
                "name": "INITIALIZATION FILE",
                "lines": 24,
                "subsections": [
                    {
                        "name": "Key Bindings",
                        "lines": 64
                    },
                    {
                        "name": "Variables",
                        "lines": 10
                    },
                    {
                        "name": "bell-style (audible)",
                        "lines": 3
                    },
                    {
                        "name": "bind-tty-special-chars (On)",
                        "lines": 2
                    },
                    {
                        "name": "blink-matching-paren (Off)",
                        "lines": 2
                    },
                    {
                        "name": "colored-completion-prefix (Off)",
                        "lines": 3
                    },
                    {
                        "name": "colored-stats (Off)",
                        "lines": 3
                    },
                    {
                        "name": "comment-begin (``#'')",
                        "lines": 2
                    },
                    {
                        "name": "completion-display-width (-1)",
                        "lines": 4
                    },
                    {
                        "name": "completion-ignore-case (Off)",
                        "lines": 2
                    },
                    {
                        "name": "completion-map-case (Off)",
                        "lines": 3
                    },
                    {
                        "name": "completion-prefix-display-length (0)",
                        "lines": 4
                    },
                    {
                        "name": "completion-query-items (100)",
                        "lines": 6
                    },
                    {
                        "name": "convert-meta (On)",
                        "lines": 4
                    },
                    {
                        "name": "disable-completion (Off)",
                        "lines": 2
                    },
                    {
                        "name": "echo-control-characters (On)",
                        "lines": 2
                    },
                    {
                        "name": "editing-mode (emacs)",
                        "lines": 2
                    },
                    {
                        "name": "emacs-mode-string (@)",
                        "lines": 6
                    },
                    {
                        "name": "enable-bracketed-paste (On)",
                        "lines": 4
                    },
                    {
                        "name": "enable-keypad (Off)",
                        "lines": 2
                    },
                    {
                        "name": "enable-meta-key (On)",
                        "lines": 3
                    },
                    {
                        "name": "expand-tilde (Off)",
                        "lines": 1
                    },
                    {
                        "name": "history-preserve-point (Off)",
                        "lines": 2
                    },
                    {
                        "name": "history-size (unset)",
                        "lines": 5
                    },
                    {
                        "name": "horizontal-scroll-mode (Off)",
                        "lines": 4
                    },
                    {
                        "name": "input-meta (Off)",
                        "lines": 4
                    },
                    {
                        "name": "isearch-terminators (``C-[ C-J'')",
                        "lines": 3
                    },
                    {
                        "name": "keymap (emacs)",
                        "lines": 4
                    },
                    {
                        "name": "keyseq-timeout (500)",
                        "lines": 8
                    },
                    {
                        "name": "mark-directories (On)",
                        "lines": 1
                    },
                    {
                        "name": "mark-modified-lines (Off)",
                        "lines": 2
                    },
                    {
                        "name": "mark-symlinked-directories (Off)",
                        "lines": 2
                    },
                    {
                        "name": "match-hidden-files (On)",
                        "lines": 3
                    },
                    {
                        "name": "menu-complete-display-prefix (Off)",
                        "lines": 2
                    },
                    {
                        "name": "output-meta (Off)",
                        "lines": 3
                    },
                    {
                        "name": "page-completions (On)",
                        "lines": 2
                    },
                    {
                        "name": "print-completions-horizontally (Off)",
                        "lines": 2
                    },
                    {
                        "name": "revert-all-at-newline (Off)",
                        "lines": 3
                    },
                    {
                        "name": "show-all-if-ambiguous (Off)",
                        "lines": 3
                    },
                    {
                        "name": "show-all-if-unmodified (Off)",
                        "lines": 4
                    },
                    {
                        "name": "show-mode-in-prompt (Off)",
                        "lines": 3
                    },
                    {
                        "name": "skip-completed-text (Off)",
                        "lines": 5
                    },
                    {
                        "name": "vi-cmd-mode-string ((cmd))",
                        "lines": 6
                    },
                    {
                        "name": "vi-ins-mode-string ((ins))",
                        "lines": 6
                    },
                    {
                        "name": "visible-stats (Off)",
                        "lines": 3
                    },
                    {
                        "name": "Conditional Constructs",
                        "lines": 55
                    },
                    {
                        "name": "$include",
                        "lines": 5
                    }
                ]
            },
            {
                "name": "SEARCHING",
                "lines": 25,
                "subsections": []
            },
            {
                "name": "EDITING COMMANDS",
                "lines": 7,
                "subsections": [
                    {
                        "name": "Commands for Moving",
                        "lines": 1
                    },
                    {
                        "name": "beginning-of-line (C-a)",
                        "lines": 1
                    },
                    {
                        "name": "end-of-line (C-e)",
                        "lines": 1
                    },
                    {
                        "name": "forward-char (C-f)",
                        "lines": 1
                    },
                    {
                        "name": "backward-char (C-b)",
                        "lines": 1
                    },
                    {
                        "name": "forward-word (M-f)",
                        "lines": 2
                    },
                    {
                        "name": "backward-word (M-b)",
                        "lines": 2
                    },
                    {
                        "name": "previous-screen-line",
                        "lines": 4
                    },
                    {
                        "name": "next-screen-line",
                        "lines": 4
                    },
                    {
                        "name": "clear-display (M-C-l)",
                        "lines": 2
                    },
                    {
                        "name": "clear-screen (C-l)",
                        "lines": 2
                    },
                    {
                        "name": "redraw-current-line",
                        "lines": 2
                    },
                    {
                        "name": "Commands for Manipulating the History",
                        "lines": 1
                    },
                    {
                        "name": "accept-line (Newline, Return)",
                        "lines": 3
                    },
                    {
                        "name": "previous-history (C-p)",
                        "lines": 1
                    },
                    {
                        "name": "next-history (C-n)",
                        "lines": 1
                    },
                    {
                        "name": "beginning-of-history (M-<)",
                        "lines": 1
                    },
                    {
                        "name": "end-of-history (M->)",
                        "lines": 1
                    },
                    {
                        "name": "reverse-search-history (C-r)",
                        "lines": 2
                    },
                    {
                        "name": "forward-search-history (C-s)",
                        "lines": 2
                    },
                    {
                        "name": "non-incremental-reverse-search-history (M-p)",
                        "lines": 2
                    },
                    {
                        "name": "non-incremental-forward-search-history (M-n)",
                        "lines": 2
                    },
                    {
                        "name": "history-search-backward",
                        "lines": 3
                    },
                    {
                        "name": "history-search-forward",
                        "lines": 3
                    },
                    {
                        "name": "history-substring-search-backward",
                        "lines": 3
                    },
                    {
                        "name": "history-substring-search-forward",
                        "lines": 3
                    },
                    {
                        "name": "yank-nth-arg (M-C-y)",
                        "lines": 14
                    },
                    {
                        "name": "operate-and-get-next (C-o)",
                        "lines": 5
                    },
                    {
                        "name": "Commands for Changing Text",
                        "lines": 4
                    },
                    {
                        "name": "delete-char (C-d)",
                        "lines": 2
                    },
                    {
                        "name": "backward-delete-char (Rubout)",
                        "lines": 2
                    },
                    {
                        "name": "forward-backward-delete-char",
                        "lines": 2
                    },
                    {
                        "name": "quoted-insert (C-q, C-v)",
                        "lines": 2
                    },
                    {
                        "name": "tab-insert (M-TAB)",
                        "lines": 1
                    },
                    {
                        "name": "self-insert (a, b, A, 1, !, ...)",
                        "lines": 1
                    },
                    {
                        "name": "transpose-chars (C-t)",
                        "lines": 3
                    },
                    {
                        "name": "transpose-words (M-t)",
                        "lines": 3
                    },
                    {
                        "name": "upcase-word (M-u)",
                        "lines": 2
                    },
                    {
                        "name": "downcase-word (M-l)",
                        "lines": 2
                    },
                    {
                        "name": "capitalize-word (M-c)",
                        "lines": 2
                    },
                    {
                        "name": "overwrite-mode",
                        "lines": 8
                    },
                    {
                        "name": "Killing and Yanking",
                        "lines": 1
                    },
                    {
                        "name": "kill-line (C-k)",
                        "lines": 1
                    },
                    {
                        "name": "backward-kill-line (C-x Rubout)",
                        "lines": 1
                    },
                    {
                        "name": "unix-line-discard (C-u)",
                        "lines": 2
                    },
                    {
                        "name": "kill-whole-line",
                        "lines": 1
                    },
                    {
                        "name": "kill-word (M-d)",
                        "lines": 2
                    },
                    {
                        "name": "backward-kill-word (M-Rubout)",
                        "lines": 2
                    },
                    {
                        "name": "unix-word-rubout (C-w)",
                        "lines": 2
                    },
                    {
                        "name": "unix-filename-rubout",
                        "lines": 2
                    },
                    {
                        "name": "delete-horizontal-space (M-\\)",
                        "lines": 1
                    },
                    {
                        "name": "kill-region",
                        "lines": 2
                    },
                    {
                        "name": "copy-region-as-kill",
                        "lines": 1
                    },
                    {
                        "name": "copy-backward-word",
                        "lines": 2
                    },
                    {
                        "name": "copy-forward-word",
                        "lines": 2
                    },
                    {
                        "name": "yank (C-y)",
                        "lines": 1
                    },
                    {
                        "name": "yank-pop (M-y)",
                        "lines": 2
                    },
                    {
                        "name": "Numeric Arguments",
                        "lines": 1
                    },
                    {
                        "name": "digit-argument (M-0, M-1, ..., M--)",
                        "lines": 2
                    },
                    {
                        "name": "universal-argument",
                        "lines": 9
                    },
                    {
                        "name": "Completing",
                        "lines": 1
                    },
                    {
                        "name": "complete (TAB)",
                        "lines": 7
                    },
                    {
                        "name": "possible-completions (M-?)",
                        "lines": 7
                    },
                    {
                        "name": "menu-complete",
                        "lines": 7
                    },
                    {
                        "name": "menu-complete-backward",
                        "lines": 3
                    },
                    {
                        "name": "delete-char-or-list",
                        "lines": 4
                    },
                    {
                        "name": "Keyboard Macros",
                        "lines": 1
                    },
                    {
                        "name": "start-kbd-macro (C-x ()",
                        "lines": 1
                    },
                    {
                        "name": "end-kbd-macro (C-x ))",
                        "lines": 2
                    },
                    {
                        "name": "call-last-kbd-macro (C-x e)",
                        "lines": 2
                    },
                    {
                        "name": "print-last-kbd-macro ()",
                        "lines": 2
                    },
                    {
                        "name": "Miscellaneous",
                        "lines": 1
                    },
                    {
                        "name": "re-read-init-file (C-x C-r)",
                        "lines": 2
                    },
                    {
                        "name": "abort (C-g)",
                        "lines": 6
                    },
                    {
                        "name": "prefix-meta (ESC)",
                        "lines": 3
                    },
                    {
                        "name": "revert-line (M-r)",
                        "lines": 2
                    },
                    {
                        "name": "tilde-expand (M-&)",
                        "lines": 1
                    },
                    {
                        "name": "set-mark (C-@, M-<space>)",
                        "lines": 2
                    },
                    {
                        "name": "exchange-point-and-mark (C-x C-x)",
                        "lines": 2
                    },
                    {
                        "name": "character-search (C-])",
                        "lines": 2
                    },
                    {
                        "name": "character-search-backward (M-C-])",
                        "lines": 2
                    },
                    {
                        "name": "skip-csi-sequence",
                        "lines": 6
                    },
                    {
                        "name": "insert-comment (M-#)",
                        "lines": 8
                    },
                    {
                        "name": "dump-functions",
                        "lines": 3
                    },
                    {
                        "name": "dump-variables",
                        "lines": 3
                    },
                    {
                        "name": "dump-macros",
                        "lines": 3
                    },
                    {
                        "name": "emacs-editing-mode (C-e)",
                        "lines": 1
                    },
                    {
                        "name": "vi-editing-mode (M-C-j)",
                        "lines": 2
                    }
                ]
            },
            {
                "name": "DEFAULT KEY BINDINGS",
                "lines": 10,
                "subsections": [
                    {
                        "name": "Emacs Mode",
                        "lines": 92
                    },
                    {
                        "name": "VI Mode bindings",
                        "lines": 101
                    }
                ]
            },
            {
                "name": "SEE ALSO",
                "lines": 4,
                "subsections": []
            },
            {
                "name": "FILES",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "AUTHORS",
                "lines": 6,
                "subsections": []
            },
            {
                "name": "BUG REPORTS",
                "lines": 12,
                "subsections": []
            },
            {
                "name": "BUGS",
                "lines": 5,
                "subsections": []
            }
        ]
    }
}