rluserman.info 91 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087
  1. This is rluserman.info, produced by makeinfo version 6.8 from
  2. rluserman.texi.
  3. This manual describes the end user interface of the GNU Readline Library
  4. (version 8.2, 19 September 2022), a library which aids in the
  5. consistency of user interface across discrete programs which provide a
  6. command line interface.
  7. Copyright (C) 1988-2022 Free Software Foundation, Inc.
  8. Permission is granted to copy, distribute and/or modify this
  9. document under the terms of the GNU Free Documentation License,
  10. Version 1.3 or any later version published by the Free Software
  11. Foundation; with no Invariant Sections, no Front-Cover Texts, and
  12. no Back-Cover Texts. A copy of the license is included in the
  13. section entitled "GNU Free Documentation License".
  14. INFO-DIR-SECTION Libraries
  15. START-INFO-DIR-ENTRY
  16. * RLuserman: (rluserman). The GNU readline library User's Manual.
  17. END-INFO-DIR-ENTRY
  18. 
  19. File: rluserman.info, Node: Top, Next: Command Line Editing, Up: (dir)
  20. GNU Readline Library
  21. ********************
  22. This document describes the end user interface of the GNU Readline
  23. Library, a utility which aids in the consistency of user interface
  24. across discrete programs which provide a command line interface. The
  25. Readline home page is <http://www.gnu.org/software/readline/>.
  26. * Menu:
  27. * Command Line Editing:: GNU Readline User's Manual.
  28. * GNU Free Documentation License:: License for copying this manual.
  29. 
  30. File: rluserman.info, Node: Command Line Editing, Next: GNU Free Documentation License, Prev: Top, Up: Top
  31. 1 Command Line Editing
  32. **********************
  33. This chapter describes the basic features of the GNU command line
  34. editing interface.
  35. * Menu:
  36. * Introduction and Notation:: Notation used in this text.
  37. * Readline Interaction:: The minimum set of commands for editing a line.
  38. * Readline Init File:: Customizing Readline from a user's view.
  39. * Bindable Readline Commands:: A description of most of the Readline commands
  40. available for binding
  41. * Readline vi Mode:: A short description of how to make Readline
  42. behave like the vi editor.
  43. 
  44. File: rluserman.info, Node: Introduction and Notation, Next: Readline Interaction, Up: Command Line Editing
  45. 1.1 Introduction to Line Editing
  46. ================================
  47. The following paragraphs describe the notation used to represent
  48. keystrokes.
  49. The text 'C-k' is read as 'Control-K' and describes the character
  50. produced when the <k> key is pressed while the Control key is depressed.
  51. The text 'M-k' is read as 'Meta-K' and describes the character
  52. produced when the Meta key (if you have one) is depressed, and the <k>
  53. key is pressed. The Meta key is labeled <ALT> on many keyboards. On
  54. keyboards with two keys labeled <ALT> (usually to either side of the
  55. space bar), the <ALT> on the left side is generally set to work as a
  56. Meta key. The <ALT> key on the right may also be configured to work as
  57. a Meta key or may be configured as some other modifier, such as a
  58. Compose key for typing accented characters.
  59. If you do not have a Meta or <ALT> key, or another key working as a
  60. Meta key, the identical keystroke can be generated by typing <ESC>
  61. _first_, and then typing <k>. Either process is known as "metafying"
  62. the <k> key.
  63. The text 'M-C-k' is read as 'Meta-Control-k' and describes the
  64. character produced by "metafying" 'C-k'.
  65. In addition, several keys have their own names. Specifically, <DEL>,
  66. <ESC>, <LFD>, <SPC>, <RET>, and <TAB> all stand for themselves when seen
  67. in this text, or in an init file (*note Readline Init File::). If your
  68. keyboard lacks a <LFD> key, typing <C-j> will produce the desired
  69. character. The <RET> key may be labeled <Return> or <Enter> on some
  70. keyboards.
  71. 
  72. File: rluserman.info, Node: Readline Interaction, Next: Readline Init File, Prev: Introduction and Notation, Up: Command Line Editing
  73. 1.2 Readline Interaction
  74. ========================
  75. Often during an interactive session you type in a long line of text,
  76. only to notice that the first word on the line is misspelled. The
  77. Readline library gives you a set of commands for manipulating the text
  78. as you type it in, allowing you to just fix your typo, and not forcing
  79. you to retype the majority of the line. Using these editing commands,
  80. you move the cursor to the place that needs correction, and delete or
  81. insert the text of the corrections. Then, when you are satisfied with
  82. the line, you simply press <RET>. You do not have to be at the end of
  83. the line to press <RET>; the entire line is accepted regardless of the
  84. location of the cursor within the line.
  85. * Menu:
  86. * Readline Bare Essentials:: The least you need to know about Readline.
  87. * Readline Movement Commands:: Moving about the input line.
  88. * Readline Killing Commands:: How to delete text, and how to get it back!
  89. * Readline Arguments:: Giving numeric arguments to commands.
  90. * Searching:: Searching through previous lines.
  91. 
  92. File: rluserman.info, Node: Readline Bare Essentials, Next: Readline Movement Commands, Up: Readline Interaction
  93. 1.2.1 Readline Bare Essentials
  94. ------------------------------
  95. In order to enter characters into the line, simply type them. The typed
  96. character appears where the cursor was, and then the cursor moves one
  97. space to the right. If you mistype a character, you can use your erase
  98. character to back up and delete the mistyped character.
  99. Sometimes you may mistype a character, and not notice the error until
  100. you have typed several other characters. In that case, you can type
  101. 'C-b' to move the cursor to the left, and then correct your mistake.
  102. Afterwards, you can move the cursor to the right with 'C-f'.
  103. When you add text in the middle of a line, you will notice that
  104. characters to the right of the cursor are 'pushed over' to make room for
  105. the text that you have inserted. Likewise, when you delete text behind
  106. the cursor, characters to the right of the cursor are 'pulled back' to
  107. fill in the blank space created by the removal of the text. A list of
  108. the bare essentials for editing the text of an input line follows.
  109. 'C-b'
  110. Move back one character.
  111. 'C-f'
  112. Move forward one character.
  113. <DEL> or <Backspace>
  114. Delete the character to the left of the cursor.
  115. 'C-d'
  116. Delete the character underneath the cursor.
  117. Printing characters
  118. Insert the character into the line at the cursor.
  119. 'C-_' or 'C-x C-u'
  120. Undo the last editing command. You can undo all the way back to an
  121. empty line.
  122. (Depending on your configuration, the <Backspace> key might be set to
  123. delete the character to the left of the cursor and the <DEL> key set to
  124. delete the character underneath the cursor, like 'C-d', rather than the
  125. character to the left of the cursor.)
  126. 
  127. File: rluserman.info, Node: Readline Movement Commands, Next: Readline Killing Commands, Prev: Readline Bare Essentials, Up: Readline Interaction
  128. 1.2.2 Readline Movement Commands
  129. --------------------------------
  130. The above table describes the most basic keystrokes that you need in
  131. order to do editing of the input line. For your convenience, many other
  132. commands have been added in addition to 'C-b', 'C-f', 'C-d', and <DEL>.
  133. Here are some commands for moving more rapidly about the line.
  134. 'C-a'
  135. Move to the start of the line.
  136. 'C-e'
  137. Move to the end of the line.
  138. 'M-f'
  139. Move forward a word, where a word is composed of letters and
  140. digits.
  141. 'M-b'
  142. Move backward a word.
  143. 'C-l'
  144. Clear the screen, reprinting the current line at the top.
  145. Notice how 'C-f' moves forward a character, while 'M-f' moves forward
  146. a word. It is a loose convention that control keystrokes operate on
  147. characters while meta keystrokes operate on words.
  148. 
  149. File: rluserman.info, Node: Readline Killing Commands, Next: Readline Arguments, Prev: Readline Movement Commands, Up: Readline Interaction
  150. 1.2.3 Readline Killing Commands
  151. -------------------------------
  152. "Killing" text means to delete the text from the line, but to save it
  153. away for later use, usually by "yanking" (re-inserting) it back into the
  154. line. ('Cut' and 'paste' are more recent jargon for 'kill' and 'yank'.)
  155. If the description for a command says that it 'kills' text, then you
  156. can be sure that you can get the text back in a different (or the same)
  157. place later.
  158. When you use a kill command, the text is saved in a "kill-ring". Any
  159. number of consecutive kills save all of the killed text together, so
  160. that when you yank it back, you get it all. The kill ring is not line
  161. specific; the text that you killed on a previously typed line is
  162. available to be yanked back later, when you are typing another line.
  163. Here is the list of commands for killing text.
  164. 'C-k'
  165. Kill the text from the current cursor position to the end of the
  166. line.
  167. 'M-d'
  168. Kill from the cursor to the end of the current word, or, if between
  169. words, to the end of the next word. Word boundaries are the same
  170. as those used by 'M-f'.
  171. 'M-<DEL>'
  172. Kill from the cursor to the start of the current word, or, if
  173. between words, to the start of the previous word. Word boundaries
  174. are the same as those used by 'M-b'.
  175. 'C-w'
  176. Kill from the cursor to the previous whitespace. This is different
  177. than 'M-<DEL>' because the word boundaries differ.
  178. Here is how to "yank" the text back into the line. Yanking means to
  179. copy the most-recently-killed text from the kill buffer.
  180. 'C-y'
  181. Yank the most recently killed text back into the buffer at the
  182. cursor.
  183. 'M-y'
  184. Rotate the kill-ring, and yank the new top. You can only do this
  185. if the prior command is 'C-y' or 'M-y'.
  186. 
  187. File: rluserman.info, Node: Readline Arguments, Next: Searching, Prev: Readline Killing Commands, Up: Readline Interaction
  188. 1.2.4 Readline Arguments
  189. ------------------------
  190. You can pass numeric arguments to Readline commands. Sometimes the
  191. argument acts as a repeat count, other times it is the sign of the
  192. argument that is significant. If you pass a negative argument to a
  193. command which normally acts in a forward direction, that command will
  194. act in a backward direction. For example, to kill text back to the
  195. start of the line, you might type 'M-- C-k'.
  196. The general way to pass numeric arguments to a command is to type
  197. meta digits before the command. If the first 'digit' typed is a minus
  198. sign ('-'), then the sign of the argument will be negative. Once you
  199. have typed one meta digit to get the argument started, you can type the
  200. remainder of the digits, and then the command. For example, to give the
  201. 'C-d' command an argument of 10, you could type 'M-1 0 C-d', which will
  202. delete the next ten characters on the input line.
  203. 
  204. File: rluserman.info, Node: Searching, Prev: Readline Arguments, Up: Readline Interaction
  205. 1.2.5 Searching for Commands in the History
  206. -------------------------------------------
  207. Readline provides commands for searching through the command history for
  208. lines containing a specified string. There are two search modes:
  209. "incremental" and "non-incremental".
  210. Incremental searches begin before the user has finished typing the
  211. search string. As each character of the search string is typed,
  212. Readline displays the next entry from the history matching the string
  213. typed so far. An incremental search requires only as many characters as
  214. needed to find the desired history entry. To search backward in the
  215. history for a particular string, type 'C-r'. Typing 'C-s' searches
  216. forward through the history. The characters present in the value of the
  217. 'isearch-terminators' variable are used to terminate an incremental
  218. search. If that variable has not been assigned a value, the <ESC> and
  219. 'C-J' characters will terminate an incremental search. 'C-g' will abort
  220. an incremental search and restore the original line. When the search is
  221. terminated, the history entry containing the search string becomes the
  222. current line.
  223. To find other matching entries in the history list, type 'C-r' or
  224. 'C-s' as appropriate. This will search backward or forward in the
  225. history for the next entry matching the search string typed so far. Any
  226. other key sequence bound to a Readline command will terminate the search
  227. and execute that command. For instance, a <RET> will terminate the
  228. search and accept the line, thereby executing the command from the
  229. history list. A movement command will terminate the search, make the
  230. last line found the current line, and begin editing.
  231. Readline remembers the last incremental search string. If two 'C-r's
  232. are typed without any intervening characters defining a new search
  233. string, any remembered search string is used.
  234. Non-incremental searches read the entire search string before
  235. starting to search for matching history lines. The search string may be
  236. typed by the user or be part of the contents of the current line.
  237. 
  238. File: rluserman.info, Node: Readline Init File, Next: Bindable Readline Commands, Prev: Readline Interaction, Up: Command Line Editing
  239. 1.3 Readline Init File
  240. ======================
  241. Although the Readline library comes with a set of Emacs-like keybindings
  242. installed by default, it is possible to use a different set of
  243. keybindings. Any user can customize programs that use Readline by
  244. putting commands in an "inputrc" file, conventionally in their home
  245. directory. The name of this file is taken from the value of the
  246. environment variable 'INPUTRC'. If that variable is unset, the default
  247. is '~/.inputrc'. If that file does not exist or cannot be read, the
  248. ultimate default is '/etc/inputrc'.
  249. When a program which uses the Readline library starts up, the init
  250. file is read, and the key bindings are set.
  251. In addition, the 'C-x C-r' command re-reads this init file, thus
  252. incorporating any changes that you might have made to it.
  253. * Menu:
  254. * Readline Init File Syntax:: Syntax for the commands in the inputrc file.
  255. * Conditional Init Constructs:: Conditional key bindings in the inputrc file.
  256. * Sample Init File:: An example inputrc file.
  257. 
  258. File: rluserman.info, Node: Readline Init File Syntax, Next: Conditional Init Constructs, Up: Readline Init File
  259. 1.3.1 Readline Init File Syntax
  260. -------------------------------
  261. There are only a few basic constructs allowed in the Readline init file.
  262. Blank lines are ignored. Lines beginning with a '#' are comments.
  263. Lines beginning with a '$' indicate conditional constructs (*note
  264. Conditional Init Constructs::). Other lines denote variable settings
  265. and key bindings.
  266. Variable Settings
  267. You can modify the run-time behavior of Readline by altering the
  268. values of variables in Readline using the 'set' command within the
  269. init file. The syntax is simple:
  270. set VARIABLE VALUE
  271. Here, for example, is how to change from the default Emacs-like key
  272. binding to use 'vi' line editing commands:
  273. set editing-mode vi
  274. Variable names and values, where appropriate, are recognized
  275. without regard to case. Unrecognized variable names are ignored.
  276. Boolean variables (those that can be set to on or off) are set to
  277. on if the value is null or empty, ON (case-insensitive), or 1. Any
  278. other value results in the variable being set to off.
  279. A great deal of run-time behavior is changeable with the following
  280. variables.
  281. 'active-region-start-color'
  282. A string variable that controls the text color and background
  283. when displaying the text in the active region (see the
  284. description of 'enable-active-region' below). This string
  285. must not take up any physical character positions on the
  286. display, so it should consist only of terminal escape
  287. sequences. It is output to the terminal before displaying the
  288. text in the active region. This variable is reset to the
  289. default value whenever the terminal type changes. The default
  290. value is the string that puts the terminal in standout mode,
  291. as obtained from the terminal's terminfo description. A
  292. sample value might be '\e[01;33m'.
  293. 'active-region-end-color'
  294. A string variable that "undoes" the effects of
  295. 'active-region-start-color' and restores "normal" terminal
  296. display appearance after displaying text in the active region.
  297. This string must not take up any physical character positions
  298. on the display, so it should consist only of terminal escape
  299. sequences. It is output to the terminal after displaying the
  300. text in the active region. This variable is reset to the
  301. default value whenever the terminal type changes. The default
  302. value is the string that restores the terminal from standout
  303. mode, as obtained from the terminal's terminfo description. A
  304. sample value might be '\e[0m'.
  305. 'bell-style'
  306. Controls what happens when Readline wants to ring the terminal
  307. bell. If set to 'none', Readline never rings the bell. If
  308. set to 'visible', Readline uses a visible bell if one is
  309. available. If set to 'audible' (the default), Readline
  310. attempts to ring the terminal's bell.
  311. 'bind-tty-special-chars'
  312. If set to 'on' (the default), Readline attempts to bind the
  313. control characters treated specially by the kernel's terminal
  314. driver to their Readline equivalents.
  315. 'blink-matching-paren'
  316. If set to 'on', Readline attempts to briefly move the cursor
  317. to an opening parenthesis when a closing parenthesis is
  318. inserted. The default is 'off'.
  319. 'colored-completion-prefix'
  320. If set to 'on', when listing completions, Readline displays
  321. the common prefix of the set of possible completions using a
  322. different color. The color definitions are taken from the
  323. value of the 'LS_COLORS' environment variable. If there is a
  324. color definition in 'LS_COLORS' for the custom suffix
  325. 'readline-colored-completion-prefix', Readline uses this color
  326. for the common prefix instead of its default. The default is
  327. 'off'.
  328. 'colored-stats'
  329. If set to 'on', Readline displays possible completions using
  330. different colors to indicate their file type. The color
  331. definitions are taken from the value of the 'LS_COLORS'
  332. environment variable. The default is 'off'.
  333. 'comment-begin'
  334. The string to insert at the beginning of the line when the
  335. 'insert-comment' command is executed. The default value is
  336. '"#"'.
  337. 'completion-display-width'
  338. The number of screen columns used to display possible matches
  339. when performing completion. The value is ignored if it is
  340. less than 0 or greater than the terminal screen width. A
  341. value of 0 will cause matches to be displayed one per line.
  342. The default value is -1.
  343. 'completion-ignore-case'
  344. If set to 'on', Readline performs filename matching and
  345. completion in a case-insensitive fashion. The default value
  346. is 'off'.
  347. 'completion-map-case'
  348. If set to 'on', and COMPLETION-IGNORE-CASE is enabled,
  349. Readline treats hyphens ('-') and underscores ('_') as
  350. equivalent when performing case-insensitive filename matching
  351. and completion. The default value is 'off'.
  352. 'completion-prefix-display-length'
  353. The length in characters of the common prefix of a list of
  354. possible completions that is displayed without modification.
  355. When set to a value greater than zero, common prefixes longer
  356. than this value are replaced with an ellipsis when displaying
  357. possible completions.
  358. 'completion-query-items'
  359. The number of possible completions that determines when the
  360. user is asked whether the list of possibilities should be
  361. displayed. If the number of possible completions is greater
  362. than or equal to this value, Readline will ask whether or not
  363. the user wishes to view them; otherwise, they are simply
  364. listed. This variable must be set to an integer value greater
  365. than or equal to zero. A zero value means Readline should
  366. never ask; negative values are treated as zero. The default
  367. limit is '100'.
  368. 'convert-meta'
  369. If set to 'on', Readline will convert characters with the
  370. eighth bit set to an ASCII key sequence by stripping the
  371. eighth bit and prefixing an <ESC> character, converting them
  372. to a meta-prefixed key sequence. The default value is 'on',
  373. but will be set to 'off' if the locale is one that contains
  374. eight-bit characters. This variable is dependent on the
  375. 'LC_CTYPE' locale category, and may change if the locale is
  376. changed.
  377. 'disable-completion'
  378. If set to 'On', Readline will inhibit word completion.
  379. Completion characters will be inserted into the line as if
  380. they had been mapped to 'self-insert'. The default is 'off'.
  381. 'echo-control-characters'
  382. When set to 'on', on operating systems that indicate they
  383. support it, Readline echoes a character corresponding to a
  384. signal generated from the keyboard. The default is 'on'.
  385. 'editing-mode'
  386. The 'editing-mode' variable controls which default set of key
  387. bindings is used. By default, Readline starts up in Emacs
  388. editing mode, where the keystrokes are most similar to Emacs.
  389. This variable can be set to either 'emacs' or 'vi'.
  390. 'emacs-mode-string'
  391. If the SHOW-MODE-IN-PROMPT variable is enabled, this string is
  392. displayed immediately before the last line of the primary
  393. prompt when emacs editing mode is active. The value is
  394. expanded like a key binding, so the standard set of meta- and
  395. control prefixes and backslash escape sequences is available.
  396. Use the '\1' and '\2' escapes to begin and end sequences of
  397. non-printing characters, which can be used to embed a terminal
  398. control sequence into the mode string. The default is '@'.
  399. 'enable-active-region'
  400. The "point" is the current cursor position, and "mark" refers
  401. to a saved cursor position (*note Commands For Moving::). The
  402. text between the point and mark is referred to as the
  403. "region". When this variable is set to 'On', Readline allows
  404. certain commands to designate the region as "active". When
  405. the region is active, Readline highlights the text in the
  406. region using the value of the 'active-region-start-color',
  407. which defaults to the string that enables the terminal's
  408. standout mode. The active region shows the text inserted by
  409. bracketed-paste and any matching text found by incremental and
  410. non-incremental history searches. The default is 'On'.
  411. 'enable-bracketed-paste'
  412. When set to 'On', Readline configures the terminal to insert
  413. each paste into the editing buffer as a single string of
  414. characters, instead of treating each character as if it had
  415. been read from the keyboard. This is called putting the
  416. terminal into "bracketed paste mode"; it prevents Readline
  417. from executing any editing commands bound to key sequences
  418. appearing in the pasted text. The default is 'On'.
  419. 'enable-keypad'
  420. When set to 'on', Readline will try to enable the application
  421. keypad when it is called. Some systems need this to enable
  422. the arrow keys. The default is 'off'.
  423. 'enable-meta-key'
  424. When set to 'on', Readline will try to enable any meta
  425. modifier key the terminal claims to support when it is called.
  426. On many terminals, the meta key is used to send eight-bit
  427. characters. The default is 'on'.
  428. 'expand-tilde'
  429. If set to 'on', tilde expansion is performed when Readline
  430. attempts word completion. The default is 'off'.
  431. 'history-preserve-point'
  432. If set to 'on', the history code attempts to place the point
  433. (the current cursor position) at the same location on each
  434. history line retrieved with 'previous-history' or
  435. 'next-history'. The default is 'off'.
  436. 'history-size'
  437. Set the maximum number of history entries saved in the history
  438. list. If set to zero, any existing history entries are
  439. deleted and no new entries are saved. If set to a value less
  440. than zero, the number of history entries is not limited. By
  441. default, the number of history entries is not limited. If an
  442. attempt is made to set HISTORY-SIZE to a non-numeric value,
  443. the maximum number of history entries will be set to 500.
  444. 'horizontal-scroll-mode'
  445. This variable can be set to either 'on' or 'off'. Setting it
  446. to 'on' means that the text of the lines being edited will
  447. scroll horizontally on a single screen line when they are
  448. longer than the width of the screen, instead of wrapping onto
  449. a new screen line. This variable is automatically set to 'on'
  450. for terminals of height 1. By default, this variable is set
  451. to 'off'.
  452. 'input-meta'
  453. If set to 'on', Readline will enable eight-bit input (it will
  454. not clear the eighth bit in the characters it reads),
  455. regardless of what the terminal claims it can support. The
  456. default value is 'off', but Readline will set it to 'on' if
  457. the locale contains eight-bit characters. The name
  458. 'meta-flag' is a synonym for this variable. This variable is
  459. dependent on the 'LC_CTYPE' locale category, and may change if
  460. the locale is changed.
  461. 'isearch-terminators'
  462. The string of characters that should terminate an incremental
  463. search without subsequently executing the character as a
  464. command (*note Searching::). If this variable has not been
  465. given a value, the characters <ESC> and 'C-J' will terminate
  466. an incremental search.
  467. 'keymap'
  468. Sets Readline's idea of the current keymap for key binding
  469. commands. Built-in 'keymap' names are 'emacs',
  470. 'emacs-standard', 'emacs-meta', 'emacs-ctlx', 'vi', 'vi-move',
  471. 'vi-command', and 'vi-insert'. 'vi' is equivalent to
  472. 'vi-command' ('vi-move' is also a synonym); 'emacs' is
  473. equivalent to 'emacs-standard'. Applications may add
  474. additional names. The default value is 'emacs'. The value of
  475. the 'editing-mode' variable also affects the default keymap.
  476. 'keyseq-timeout'
  477. Specifies the duration Readline will wait for a character when
  478. reading an ambiguous key sequence (one that can form a
  479. complete key sequence using the input read so far, or can take
  480. additional input to complete a longer key sequence). If no
  481. input is received within the timeout, Readline will use the
  482. shorter but complete key sequence. Readline uses this value
  483. to determine whether or not input is available on the current
  484. input source ('rl_instream' by default). The value is
  485. specified in milliseconds, so a value of 1000 means that
  486. Readline will wait one second for additional input. If this
  487. variable is set to a value less than or equal to zero, or to a
  488. non-numeric value, Readline will wait until another key is
  489. pressed to decide which key sequence to complete. The default
  490. value is '500'.
  491. 'mark-directories'
  492. If set to 'on', completed directory names have a slash
  493. appended. The default is 'on'.
  494. 'mark-modified-lines'
  495. This variable, when set to 'on', causes Readline to display an
  496. asterisk ('*') at the start of history lines which have been
  497. modified. This variable is 'off' by default.
  498. 'mark-symlinked-directories'
  499. If set to 'on', completed names which are symbolic links to
  500. directories have a slash appended (subject to the value of
  501. 'mark-directories'). The default is 'off'.
  502. 'match-hidden-files'
  503. This variable, when set to 'on', causes Readline to match
  504. files whose names begin with a '.' (hidden files) when
  505. performing filename completion. If set to 'off', the leading
  506. '.' must be supplied by the user in the filename to be
  507. completed. This variable is 'on' by default.
  508. 'menu-complete-display-prefix'
  509. If set to 'on', menu completion displays the common prefix of
  510. the list of possible completions (which may be empty) before
  511. cycling through the list. The default is 'off'.
  512. 'output-meta'
  513. If set to 'on', Readline will display characters with the
  514. eighth bit set directly rather than as a meta-prefixed escape
  515. sequence. The default is 'off', but Readline will set it to
  516. 'on' if the locale contains eight-bit characters. This
  517. variable is dependent on the 'LC_CTYPE' locale category, and
  518. may change if the locale is changed.
  519. 'page-completions'
  520. If set to 'on', Readline uses an internal 'more'-like pager to
  521. display a screenful of possible completions at a time. This
  522. variable is 'on' by default.
  523. 'print-completions-horizontally'
  524. If set to 'on', Readline will display completions with matches
  525. sorted horizontally in alphabetical order, rather than down
  526. the screen. The default is 'off'.
  527. 'revert-all-at-newline'
  528. If set to 'on', Readline will undo all changes to history
  529. lines before returning when 'accept-line' is executed. By
  530. default, history lines may be modified and retain individual
  531. undo lists across calls to 'readline()'. The default is
  532. 'off'.
  533. 'show-all-if-ambiguous'
  534. This alters the default behavior of the completion functions.
  535. If set to 'on', words which have more than one possible
  536. completion cause the matches to be listed immediately instead
  537. of ringing the bell. The default value is 'off'.
  538. 'show-all-if-unmodified'
  539. This alters the default behavior of the completion functions
  540. in a fashion similar to SHOW-ALL-IF-AMBIGUOUS. If set to
  541. 'on', words which have more than one possible completion
  542. without any possible partial completion (the possible
  543. completions don't share a common prefix) cause the matches to
  544. be listed immediately instead of ringing the bell. The
  545. default value is 'off'.
  546. 'show-mode-in-prompt'
  547. If set to 'on', add a string to the beginning of the prompt
  548. indicating the editing mode: emacs, vi command, or vi
  549. insertion. The mode strings are user-settable (e.g.,
  550. EMACS-MODE-STRING). The default value is 'off'.
  551. 'skip-completed-text'
  552. If set to 'on', this alters the default completion behavior
  553. when inserting a single match into the line. It's only active
  554. when performing completion in the middle of a word. If
  555. enabled, Readline does not insert characters from the
  556. completion that match characters after point in the word being
  557. completed, so portions of the word following the cursor are
  558. not duplicated. For instance, if this is enabled, attempting
  559. completion when the cursor is after the 'e' in 'Makefile' will
  560. result in 'Makefile' rather than 'Makefilefile', assuming
  561. there is a single possible completion. The default value is
  562. 'off'.
  563. 'vi-cmd-mode-string'
  564. If the SHOW-MODE-IN-PROMPT variable is enabled, this string is
  565. displayed immediately before the last line of the primary
  566. prompt when vi editing mode is active and in command mode.
  567. The value is expanded like a key binding, so the standard set
  568. of meta- and control prefixes and backslash escape sequences
  569. is available. Use the '\1' and '\2' escapes to begin and end
  570. sequences of non-printing characters, which can be used to
  571. embed a terminal control sequence into the mode string. The
  572. default is '(cmd)'.
  573. 'vi-ins-mode-string'
  574. If the SHOW-MODE-IN-PROMPT variable is enabled, this string is
  575. displayed immediately before the last line of the primary
  576. prompt when vi editing mode is active and in insertion mode.
  577. The value is expanded like a key binding, so the standard set
  578. of meta- and control prefixes and backslash escape sequences
  579. is available. Use the '\1' and '\2' escapes to begin and end
  580. sequences of non-printing characters, which can be used to
  581. embed a terminal control sequence into the mode string. The
  582. default is '(ins)'.
  583. 'visible-stats'
  584. If set to 'on', a character denoting a file's type is appended
  585. to the filename when listing possible completions. The
  586. default is 'off'.
  587. Key Bindings
  588. The syntax for controlling key bindings in the init file is simple.
  589. First you need to find the name of the command that you want to
  590. change. The following sections contain tables of the command name,
  591. the default keybinding, if any, and a short description of what the
  592. command does.
  593. Once you know the name of the command, simply place on a line in
  594. the init file the name of the key you wish to bind the command to,
  595. a colon, and then the name of the command. There can be no space
  596. between the key name and the colon - that will be interpreted as
  597. part of the key name. The name of the key can be expressed in
  598. different ways, depending on what you find most comfortable.
  599. In addition to command names, Readline allows keys to be bound to a
  600. string that is inserted when the key is pressed (a MACRO).
  601. KEYNAME: FUNCTION-NAME or MACRO
  602. KEYNAME is the name of a key spelled out in English. For
  603. example:
  604. Control-u: universal-argument
  605. Meta-Rubout: backward-kill-word
  606. Control-o: "> output"
  607. In the example above, 'C-u' is bound to the function
  608. 'universal-argument', 'M-DEL' is bound to the function
  609. 'backward-kill-word', and 'C-o' is bound to run the macro
  610. expressed on the right hand side (that is, to insert the text
  611. '> output' into the line).
  612. A number of symbolic character names are recognized while
  613. processing this key binding syntax: DEL, ESC, ESCAPE, LFD,
  614. NEWLINE, RET, RETURN, RUBOUT, SPACE, SPC, and TAB.
  615. "KEYSEQ": FUNCTION-NAME or MACRO
  616. KEYSEQ differs from KEYNAME above in that strings denoting an
  617. entire key sequence can be specified, by placing the key
  618. sequence in double quotes. Some GNU Emacs style key escapes
  619. can be used, as in the following example, but the special
  620. character names are not recognized.
  621. "\C-u": universal-argument
  622. "\C-x\C-r": re-read-init-file
  623. "\e[11~": "Function Key 1"
  624. In the above example, 'C-u' is again bound to the function
  625. 'universal-argument' (just as it was in the first example),
  626. ''C-x' 'C-r'' is bound to the function 're-read-init-file',
  627. and '<ESC> <[> <1> <1> <~>' is bound to insert the text
  628. 'Function Key 1'.
  629. The following GNU Emacs style escape sequences are available when
  630. specifying key sequences:
  631. '\C-'
  632. control prefix
  633. '\M-'
  634. meta prefix
  635. '\e'
  636. an escape character
  637. '\\'
  638. backslash
  639. '\"'
  640. <">, a double quotation mark
  641. '\''
  642. <'>, a single quote or apostrophe
  643. In addition to the GNU Emacs style escape sequences, a second set
  644. of backslash escapes is available:
  645. '\a'
  646. alert (bell)
  647. '\b'
  648. backspace
  649. '\d'
  650. delete
  651. '\f'
  652. form feed
  653. '\n'
  654. newline
  655. '\r'
  656. carriage return
  657. '\t'
  658. horizontal tab
  659. '\v'
  660. vertical tab
  661. '\NNN'
  662. the eight-bit character whose value is the octal value NNN
  663. (one to three digits)
  664. '\xHH'
  665. the eight-bit character whose value is the hexadecimal value
  666. HH (one or two hex digits)
  667. When entering the text of a macro, single or double quotes must be
  668. used to indicate a macro definition. Unquoted text is assumed to
  669. be a function name. In the macro body, the backslash escapes
  670. described above are expanded. Backslash will quote any other
  671. character in the macro text, including '"' and '''. For example,
  672. the following binding will make ''C-x' \' insert a single '\' into
  673. the line:
  674. "\C-x\\": "\\"
  675. 
  676. File: rluserman.info, Node: Conditional Init Constructs, Next: Sample Init File, Prev: Readline Init File Syntax, Up: Readline Init File
  677. 1.3.2 Conditional Init Constructs
  678. ---------------------------------
  679. Readline implements a facility similar in spirit to the conditional
  680. compilation features of the C preprocessor which allows key bindings and
  681. variable settings to be performed as the result of tests. There are
  682. four parser directives used.
  683. '$if'
  684. The '$if' construct allows bindings to be made based on the editing
  685. mode, the terminal being used, or the application using Readline.
  686. The text of the test, after any comparison operator, extends to the
  687. end of the line; unless otherwise noted, no characters are required
  688. to isolate it.
  689. 'mode'
  690. The 'mode=' form of the '$if' directive is used to test
  691. whether Readline is in 'emacs' or 'vi' mode. This may be used
  692. in conjunction with the 'set keymap' command, for instance, to
  693. set bindings in the 'emacs-standard' and 'emacs-ctlx' keymaps
  694. only if Readline is starting out in 'emacs' mode.
  695. 'term'
  696. The 'term=' form may be used to include terminal-specific key
  697. bindings, perhaps to bind the key sequences output by the
  698. terminal's function keys. The word on the right side of the
  699. '=' is tested against both the full name of the terminal and
  700. the portion of the terminal name before the first '-'. This
  701. allows 'sun' to match both 'sun' and 'sun-cmd', for instance.
  702. 'version'
  703. The 'version' test may be used to perform comparisons against
  704. specific Readline versions. The 'version' expands to the
  705. current Readline version. The set of comparison operators
  706. includes '=' (and '=='), '!=', '<=', '>=', '<', and '>'. The
  707. version number supplied on the right side of the operator
  708. consists of a major version number, an optional decimal point,
  709. and an optional minor version (e.g., '7.1'). If the minor
  710. version is omitted, it is assumed to be '0'. The operator may
  711. be separated from the string 'version' and from the version
  712. number argument by whitespace. The following example sets a
  713. variable if the Readline version being used is 7.0 or newer:
  714. $if version >= 7.0
  715. set show-mode-in-prompt on
  716. $endif
  717. 'application'
  718. The APPLICATION construct is used to include
  719. application-specific settings. Each program using the
  720. Readline library sets the APPLICATION NAME, and you can test
  721. for a particular value. This could be used to bind key
  722. sequences to functions useful for a specific program. For
  723. instance, the following command adds a key sequence that
  724. quotes the current or previous word in Bash:
  725. $if Bash
  726. # Quote the current or previous word
  727. "\C-xq": "\eb\"\ef\""
  728. $endif
  729. 'variable'
  730. The VARIABLE construct provides simple equality tests for
  731. Readline variables and values. The permitted comparison
  732. operators are '=', '==', and '!='. The variable name must be
  733. separated from the comparison operator by whitespace; the
  734. operator may be separated from the value on the right hand
  735. side by whitespace. Both string and boolean variables may be
  736. tested. Boolean variables must be tested against the values
  737. ON and OFF. The following example is equivalent to the
  738. 'mode=emacs' test described above:
  739. $if editing-mode == emacs
  740. set show-mode-in-prompt on
  741. $endif
  742. '$endif'
  743. This command, as seen in the previous example, terminates an '$if'
  744. command.
  745. '$else'
  746. Commands in this branch of the '$if' directive are executed if the
  747. test fails.
  748. '$include'
  749. This directive takes a single filename as an argument and reads
  750. commands and bindings from that file. For example, the following
  751. directive reads from '/etc/inputrc':
  752. $include /etc/inputrc
  753. 
  754. File: rluserman.info, Node: Sample Init File, Prev: Conditional Init Constructs, Up: Readline Init File
  755. 1.3.3 Sample Init File
  756. ----------------------
  757. Here is an example of an INPUTRC file. This illustrates key binding,
  758. variable assignment, and conditional syntax.
  759. # This file controls the behaviour of line input editing for
  760. # programs that use the GNU Readline library. Existing
  761. # programs include FTP, Bash, and GDB.
  762. #
  763. # You can re-read the inputrc file with C-x C-r.
  764. # Lines beginning with '#' are comments.
  765. #
  766. # First, include any system-wide bindings and variable
  767. # assignments from /etc/Inputrc
  768. $include /etc/Inputrc
  769. #
  770. # Set various bindings for emacs mode.
  771. set editing-mode emacs
  772. $if mode=emacs
  773. Meta-Control-h: backward-kill-word Text after the function name is ignored
  774. #
  775. # Arrow keys in keypad mode
  776. #
  777. #"\M-OD": backward-char
  778. #"\M-OC": forward-char
  779. #"\M-OA": previous-history
  780. #"\M-OB": next-history
  781. #
  782. # Arrow keys in ANSI mode
  783. #
  784. "\M-[D": backward-char
  785. "\M-[C": forward-char
  786. "\M-[A": previous-history
  787. "\M-[B": next-history
  788. #
  789. # Arrow keys in 8 bit keypad mode
  790. #
  791. #"\M-\C-OD": backward-char
  792. #"\M-\C-OC": forward-char
  793. #"\M-\C-OA": previous-history
  794. #"\M-\C-OB": next-history
  795. #
  796. # Arrow keys in 8 bit ANSI mode
  797. #
  798. #"\M-\C-[D": backward-char
  799. #"\M-\C-[C": forward-char
  800. #"\M-\C-[A": previous-history
  801. #"\M-\C-[B": next-history
  802. C-q: quoted-insert
  803. $endif
  804. # An old-style binding. This happens to be the default.
  805. TAB: complete
  806. # Macros that are convenient for shell interaction
  807. $if Bash
  808. # edit the path
  809. "\C-xp": "PATH=${PATH}\e\C-e\C-a\ef\C-f"
  810. # prepare to type a quoted word --
  811. # insert open and close double quotes
  812. # and move to just after the open quote
  813. "\C-x\"": "\"\"\C-b"
  814. # insert a backslash (testing backslash escapes
  815. # in sequences and macros)
  816. "\C-x\\": "\\"
  817. # Quote the current or previous word
  818. "\C-xq": "\eb\"\ef\""
  819. # Add a binding to refresh the line, which is unbound
  820. "\C-xr": redraw-current-line
  821. # Edit variable on current line.
  822. "\M-\C-v": "\C-a\C-k$\C-y\M-\C-e\C-a\C-y="
  823. $endif
  824. # use a visible bell if one is available
  825. set bell-style visible
  826. # don't strip characters to 7 bits when reading
  827. set input-meta on
  828. # allow iso-latin1 characters to be inserted rather
  829. # than converted to prefix-meta sequences
  830. set convert-meta off
  831. # display characters with the eighth bit set directly
  832. # rather than as meta-prefixed characters
  833. set output-meta on
  834. # if there are 150 or more possible completions for a word,
  835. # ask whether or not the user wants to see all of them
  836. set completion-query-items 150
  837. # For FTP
  838. $if Ftp
  839. "\C-xg": "get \M-?"
  840. "\C-xt": "put \M-?"
  841. "\M-.": yank-last-arg
  842. $endif
  843. 
  844. File: rluserman.info, Node: Bindable Readline Commands, Next: Readline vi Mode, Prev: Readline Init File, Up: Command Line Editing
  845. 1.4 Bindable Readline Commands
  846. ==============================
  847. * Menu:
  848. * Commands For Moving:: Moving about the line.
  849. * Commands For History:: Getting at previous lines.
  850. * Commands For Text:: Commands for changing text.
  851. * Commands For Killing:: Commands for killing and yanking.
  852. * Numeric Arguments:: Specifying numeric arguments, repeat counts.
  853. * Commands For Completion:: Getting Readline to do the typing for you.
  854. * Keyboard Macros:: Saving and re-executing typed characters
  855. * Miscellaneous Commands:: Other miscellaneous commands.
  856. This section describes Readline commands that may be bound to key
  857. sequences. Command names without an accompanying key sequence are
  858. unbound by default.
  859. In the following descriptions, "point" refers to the current cursor
  860. position, and "mark" refers to a cursor position saved by the 'set-mark'
  861. command. The text between the point and mark is referred to as the
  862. "region".
  863. 
  864. File: rluserman.info, Node: Commands For Moving, Next: Commands For History, Up: Bindable Readline Commands
  865. 1.4.1 Commands For Moving
  866. -------------------------
  867. 'beginning-of-line (C-a)'
  868. Move to the start of the current line.
  869. 'end-of-line (C-e)'
  870. Move to the end of the line.
  871. 'forward-char (C-f)'
  872. Move forward a character.
  873. 'backward-char (C-b)'
  874. Move back a character.
  875. 'forward-word (M-f)'
  876. Move forward to the end of the next word. Words are composed of
  877. letters and digits.
  878. 'backward-word (M-b)'
  879. Move back to the start of the current or previous word. Words are
  880. composed of letters and digits.
  881. 'previous-screen-line ()'
  882. Attempt to move point to the same physical screen column on the
  883. previous physical screen line. This will not have the desired
  884. effect if the current Readline line does not take up more than one
  885. physical line or if point is not greater than the length of the
  886. prompt plus the screen width.
  887. 'next-screen-line ()'
  888. Attempt to move point to the same physical screen column on the
  889. next physical screen line. This will not have the desired effect
  890. if the current Readline line does not take up more than one
  891. physical line or if the length of the current Readline line is not
  892. greater than the length of the prompt plus the screen width.
  893. 'clear-display (M-C-l)'
  894. Clear the screen and, if possible, the terminal's scrollback
  895. buffer, then redraw the current line, leaving the current line at
  896. the top of the screen.
  897. 'clear-screen (C-l)'
  898. Clear the screen, then redraw the current line, leaving the current
  899. line at the top of the screen.
  900. 'redraw-current-line ()'
  901. Refresh the current line. By default, this is unbound.
  902. 
  903. File: rluserman.info, Node: Commands For History, Next: Commands For Text, Prev: Commands For Moving, Up: Bindable Readline Commands
  904. 1.4.2 Commands For Manipulating The History
  905. -------------------------------------------
  906. 'accept-line (Newline or Return)'
  907. Accept the line regardless of where the cursor is. If this line is
  908. non-empty, it may be added to the history list for future recall
  909. with 'add_history()'. If this line is a modified history line, the
  910. history line is restored to its original state.
  911. 'previous-history (C-p)'
  912. Move 'back' through the history list, fetching the previous
  913. command.
  914. 'next-history (C-n)'
  915. Move 'forward' through the history list, fetching the next command.
  916. 'beginning-of-history (M-<)'
  917. Move to the first line in the history.
  918. 'end-of-history (M->)'
  919. Move to the end of the input history, i.e., the line currently
  920. being entered.
  921. 'reverse-search-history (C-r)'
  922. Search backward starting at the current line and moving 'up'
  923. through the history as necessary. This is an incremental search.
  924. This command sets the region to the matched text and activates the
  925. mark.
  926. 'forward-search-history (C-s)'
  927. Search forward starting at the current line and moving 'down'
  928. through the history as necessary. This is an incremental search.
  929. This command sets the region to the matched text and activates the
  930. mark.
  931. 'non-incremental-reverse-search-history (M-p)'
  932. Search backward starting at the current line and moving 'up'
  933. through the history as necessary using a non-incremental search for
  934. a string supplied by the user. The search string may match
  935. anywhere in a history line.
  936. 'non-incremental-forward-search-history (M-n)'
  937. Search forward starting at the current line and moving 'down'
  938. through the history as necessary using a non-incremental search for
  939. a string supplied by the user. The search string may match
  940. anywhere in a history line.
  941. 'history-search-forward ()'
  942. Search forward through the history for the string of characters
  943. between the start of the current line and the point. The search
  944. string must match at the beginning of a history line. This is a
  945. non-incremental search. By default, this command is unbound.
  946. 'history-search-backward ()'
  947. Search backward through the history for the string of characters
  948. between the start of the current line and the point. The search
  949. string must match at the beginning of a history line. This is a
  950. non-incremental search. By default, this command is unbound.
  951. 'history-substring-search-forward ()'
  952. Search forward through the history for the string of characters
  953. between the start of the current line and the point. The search
  954. string may match anywhere in a history line. This is a
  955. non-incremental search. By default, this command is unbound.
  956. 'history-substring-search-backward ()'
  957. Search backward through the history for the string of characters
  958. between the start of the current line and the point. The search
  959. string may match anywhere in a history line. This is a
  960. non-incremental search. By default, this command is unbound.
  961. 'yank-nth-arg (M-C-y)'
  962. Insert the first argument to the previous command (usually the
  963. second word on the previous line) at point. With an argument N,
  964. insert the Nth word from the previous command (the words in the
  965. previous command begin with word 0). A negative argument inserts
  966. the Nth word from the end of the previous command. Once the
  967. argument N is computed, the argument is extracted as if the '!N'
  968. history expansion had been specified.
  969. 'yank-last-arg (M-. or M-_)'
  970. Insert last argument to the previous command (the last word of the
  971. previous history entry). With a numeric argument, behave exactly
  972. like 'yank-nth-arg'. Successive calls to 'yank-last-arg' move back
  973. through the history list, inserting the last word (or the word
  974. specified by the argument to the first call) of each line in turn.
  975. Any numeric argument supplied to these successive calls determines
  976. the direction to move through the history. A negative argument
  977. switches the direction through the history (back or forward). The
  978. history expansion facilities are used to extract the last argument,
  979. as if the '!$' history expansion had been specified.
  980. 'operate-and-get-next (C-o)'
  981. Accept the current line for return to the calling application as if
  982. a newline had been entered, and fetch the next line relative to the
  983. current line from the history for editing. A numeric argument, if
  984. supplied, specifies the history entry to use instead of the current
  985. line.
  986. 'fetch-history ()'
  987. With a numeric argument, fetch that entry from the history list and
  988. make it the current line. Without an argument, move back to the
  989. first entry in the history list.
  990. 
  991. File: rluserman.info, Node: Commands For Text, Next: Commands For Killing, Prev: Commands For History, Up: Bindable Readline Commands
  992. 1.4.3 Commands For Changing Text
  993. --------------------------------
  994. 'end-of-file (usually C-d)'
  995. The character indicating end-of-file as set, for example, by
  996. 'stty'. If this character is read when there are no characters on
  997. the line, and point is at the beginning of the line, Readline
  998. interprets it as the end of input and returns EOF.
  999. 'delete-char (C-d)'
  1000. Delete the character at point. If this function is bound to the
  1001. same character as the tty EOF character, as 'C-d' commonly is, see
  1002. above for the effects.
  1003. 'backward-delete-char (Rubout)'
  1004. Delete the character behind the cursor. A numeric argument means
  1005. to kill the characters instead of deleting them.
  1006. 'forward-backward-delete-char ()'
  1007. Delete the character under the cursor, unless the cursor is at the
  1008. end of the line, in which case the character behind the cursor is
  1009. deleted. By default, this is not bound to a key.
  1010. 'quoted-insert (C-q or C-v)'
  1011. Add the next character typed to the line verbatim. This is how to
  1012. insert key sequences like 'C-q', for example.
  1013. 'tab-insert (M-<TAB>)'
  1014. Insert a tab character.
  1015. 'self-insert (a, b, A, 1, !, ...)'
  1016. Insert yourself.
  1017. 'bracketed-paste-begin ()'
  1018. This function is intended to be bound to the "bracketed paste"
  1019. escape sequence sent by some terminals, and such a binding is
  1020. assigned by default. It allows Readline to insert the pasted text
  1021. as a single unit without treating each character as if it had been
  1022. read from the keyboard. The characters are inserted as if each one
  1023. was bound to 'self-insert' instead of executing any editing
  1024. commands.
  1025. Bracketed paste sets the region (the characters between point and
  1026. the mark) to the inserted text. It uses the concept of an _active
  1027. mark_: when the mark is active, Readline redisplay uses the
  1028. terminal's standout mode to denote the region.
  1029. 'transpose-chars (C-t)'
  1030. Drag the character before the cursor forward over the character at
  1031. the cursor, moving the cursor forward as well. If the insertion
  1032. point is at the end of the line, then this transposes the last two
  1033. characters of the line. Negative arguments have no effect.
  1034. 'transpose-words (M-t)'
  1035. Drag the word before point past the word after point, moving point
  1036. past that word as well. If the insertion point is at the end of
  1037. the line, this transposes the last two words on the line.
  1038. 'upcase-word (M-u)'
  1039. Uppercase the current (or following) word. With a negative
  1040. argument, uppercase the previous word, but do not move the cursor.
  1041. 'downcase-word (M-l)'
  1042. Lowercase the current (or following) word. With a negative
  1043. argument, lowercase the previous word, but do not move the cursor.
  1044. 'capitalize-word (M-c)'
  1045. Capitalize the current (or following) word. With a negative
  1046. argument, capitalize the previous word, but do not move the cursor.
  1047. 'overwrite-mode ()'
  1048. Toggle overwrite mode. With an explicit positive numeric argument,
  1049. switches to overwrite mode. With an explicit non-positive numeric
  1050. argument, switches to insert mode. This command affects only
  1051. 'emacs' mode; 'vi' mode does overwrite differently. Each call to
  1052. 'readline()' starts in insert mode.
  1053. In overwrite mode, characters bound to 'self-insert' replace the
  1054. text at point rather than pushing the text to the right.
  1055. Characters bound to 'backward-delete-char' replace the character
  1056. before point with a space.
  1057. By default, this command is unbound.
  1058. 
  1059. File: rluserman.info, Node: Commands For Killing, Next: Numeric Arguments, Prev: Commands For Text, Up: Bindable Readline Commands
  1060. 1.4.4 Killing And Yanking
  1061. -------------------------
  1062. 'kill-line (C-k)'
  1063. Kill the text from point to the end of the line. With a negative
  1064. numeric argument, kill backward from the cursor to the beginning of
  1065. the current line.
  1066. 'backward-kill-line (C-x Rubout)'
  1067. Kill backward from the cursor to the beginning of the current line.
  1068. With a negative numeric argument, kill forward from the cursor to
  1069. the end of the current line.
  1070. 'unix-line-discard (C-u)'
  1071. Kill backward from the cursor to the beginning of the current line.
  1072. 'kill-whole-line ()'
  1073. Kill all characters on the current line, no matter where point is.
  1074. By default, this is unbound.
  1075. 'kill-word (M-d)'
  1076. Kill from point to the end of the current word, or if between
  1077. words, to the end of the next word. Word boundaries are the same
  1078. as 'forward-word'.
  1079. 'backward-kill-word (M-<DEL>)'
  1080. Kill the word behind point. Word boundaries are the same as
  1081. 'backward-word'.
  1082. 'shell-transpose-words (M-C-t)'
  1083. Drag the word before point past the word after point, moving point
  1084. past that word as well. If the insertion point is at the end of
  1085. the line, this transposes the last two words on the line. Word
  1086. boundaries are the same as 'shell-forward-word' and
  1087. 'shell-backward-word'.
  1088. 'unix-word-rubout (C-w)'
  1089. Kill the word behind point, using white space as a word boundary.
  1090. The killed text is saved on the kill-ring.
  1091. 'unix-filename-rubout ()'
  1092. Kill the word behind point, using white space and the slash
  1093. character as the word boundaries. The killed text is saved on the
  1094. kill-ring.
  1095. 'delete-horizontal-space ()'
  1096. Delete all spaces and tabs around point. By default, this is
  1097. unbound.
  1098. 'kill-region ()'
  1099. Kill the text in the current region. By default, this command is
  1100. unbound.
  1101. 'copy-region-as-kill ()'
  1102. Copy the text in the region to the kill buffer, so it can be yanked
  1103. right away. By default, this command is unbound.
  1104. 'copy-backward-word ()'
  1105. Copy the word before point to the kill buffer. The word boundaries
  1106. are the same as 'backward-word'. By default, this command is
  1107. unbound.
  1108. 'copy-forward-word ()'
  1109. Copy the word following point to the kill buffer. The word
  1110. boundaries are the same as 'forward-word'. By default, this
  1111. command is unbound.
  1112. 'yank (C-y)'
  1113. Yank the top of the kill ring into the buffer at point.
  1114. 'yank-pop (M-y)'
  1115. Rotate the kill-ring, and yank the new top. You can only do this
  1116. if the prior command is 'yank' or 'yank-pop'.
  1117. 
  1118. File: rluserman.info, Node: Numeric Arguments, Next: Commands For Completion, Prev: Commands For Killing, Up: Bindable Readline Commands
  1119. 1.4.5 Specifying Numeric Arguments
  1120. ----------------------------------
  1121. 'digit-argument (M-0, M-1, ... M--)'
  1122. Add this digit to the argument already accumulating, or start a new
  1123. argument. 'M--' starts a negative argument.
  1124. 'universal-argument ()'
  1125. This is another way to specify an argument. If this command is
  1126. followed by one or more digits, optionally with a leading minus
  1127. sign, those digits define the argument. If the command is followed
  1128. by digits, executing 'universal-argument' again ends the numeric
  1129. argument, but is otherwise ignored. As a special case, if this
  1130. command is immediately followed by a character that is neither a
  1131. digit nor minus sign, the argument count for the next command is
  1132. multiplied by four. The argument count is initially one, so
  1133. executing this function the first time makes the argument count
  1134. four, a second time makes the argument count sixteen, and so on.
  1135. By default, this is not bound to a key.
  1136. 
  1137. File: rluserman.info, Node: Commands For Completion, Next: Keyboard Macros, Prev: Numeric Arguments, Up: Bindable Readline Commands
  1138. 1.4.6 Letting Readline Type For You
  1139. -----------------------------------
  1140. 'complete (<TAB>)'
  1141. Attempt to perform completion on the text before point. The actual
  1142. completion performed is application-specific. The default is
  1143. filename completion.
  1144. 'possible-completions (M-?)'
  1145. List the possible completions of the text before point. When
  1146. displaying completions, Readline sets the number of columns used
  1147. for display to the value of 'completion-display-width', the value
  1148. of the environment variable 'COLUMNS', or the screen width, in that
  1149. order.
  1150. 'insert-completions (M-*)'
  1151. Insert all completions of the text before point that would have
  1152. been generated by 'possible-completions'.
  1153. 'menu-complete ()'
  1154. Similar to 'complete', but replaces the word to be completed with a
  1155. single match from the list of possible completions. Repeated
  1156. execution of 'menu-complete' steps through the list of possible
  1157. completions, inserting each match in turn. At the end of the list
  1158. of completions, the bell is rung (subject to the setting of
  1159. 'bell-style') and the original text is restored. An argument of N
  1160. moves N positions forward in the list of matches; a negative
  1161. argument may be used to move backward through the list. This
  1162. command is intended to be bound to <TAB>, but is unbound by
  1163. default.
  1164. 'menu-complete-backward ()'
  1165. Identical to 'menu-complete', but moves backward through the list
  1166. of possible completions, as if 'menu-complete' had been given a
  1167. negative argument.
  1168. 'delete-char-or-list ()'
  1169. Deletes the character under the cursor if not at the beginning or
  1170. end of the line (like 'delete-char'). If at the end of the line,
  1171. behaves identically to 'possible-completions'. This command is
  1172. unbound by default.
  1173. 
  1174. File: rluserman.info, Node: Keyboard Macros, Next: Miscellaneous Commands, Prev: Commands For Completion, Up: Bindable Readline Commands
  1175. 1.4.7 Keyboard Macros
  1176. ---------------------
  1177. 'start-kbd-macro (C-x ()'
  1178. Begin saving the characters typed into the current keyboard macro.
  1179. 'end-kbd-macro (C-x ))'
  1180. Stop saving the characters typed into the current keyboard macro
  1181. and save the definition.
  1182. 'call-last-kbd-macro (C-x e)'
  1183. Re-execute the last keyboard macro defined, by making the
  1184. characters in the macro appear as if typed at the keyboard.
  1185. 'print-last-kbd-macro ()'
  1186. Print the last keyboard macro defined in a format suitable for the
  1187. INPUTRC file.
  1188. 
  1189. File: rluserman.info, Node: Miscellaneous Commands, Prev: Keyboard Macros, Up: Bindable Readline Commands
  1190. 1.4.8 Some Miscellaneous Commands
  1191. ---------------------------------
  1192. 're-read-init-file (C-x C-r)'
  1193. Read in the contents of the INPUTRC file, and incorporate any
  1194. bindings or variable assignments found there.
  1195. 'abort (C-g)'
  1196. Abort the current editing command and ring the terminal's bell
  1197. (subject to the setting of 'bell-style').
  1198. 'do-lowercase-version (M-A, M-B, M-X, ...)'
  1199. If the metafied character X is upper case, run the command that is
  1200. bound to the corresponding metafied lower case character. The
  1201. behavior is undefined if X is already lower case.
  1202. 'prefix-meta (<ESC>)'
  1203. Metafy the next character typed. This is for keyboards without a
  1204. meta key. Typing '<ESC> f' is equivalent to typing 'M-f'.
  1205. 'undo (C-_ or C-x C-u)'
  1206. Incremental undo, separately remembered for each line.
  1207. 'revert-line (M-r)'
  1208. Undo all changes made to this line. This is like executing the
  1209. 'undo' command enough times to get back to the beginning.
  1210. 'tilde-expand (M-~)'
  1211. Perform tilde expansion on the current word.
  1212. 'set-mark (C-@)'
  1213. Set the mark to the point. If a numeric argument is supplied, the
  1214. mark is set to that position.
  1215. 'exchange-point-and-mark (C-x C-x)'
  1216. Swap the point with the mark. The current cursor position is set
  1217. to the saved position, and the old cursor position is saved as the
  1218. mark.
  1219. 'character-search (C-])'
  1220. A character is read and point is moved to the next occurrence of
  1221. that character. A negative argument searches for previous
  1222. occurrences.
  1223. 'character-search-backward (M-C-])'
  1224. A character is read and point is moved to the previous occurrence
  1225. of that character. A negative argument searches for subsequent
  1226. occurrences.
  1227. 'skip-csi-sequence ()'
  1228. Read enough characters to consume a multi-key sequence such as
  1229. those defined for keys like Home and End. Such sequences begin
  1230. with a Control Sequence Indicator (CSI), usually ESC-[. If this
  1231. sequence is bound to "\e[", keys producing such sequences will have
  1232. no effect unless explicitly bound to a Readline command, instead of
  1233. inserting stray characters into the editing buffer. This is
  1234. unbound by default, but usually bound to ESC-[.
  1235. 'insert-comment (M-#)'
  1236. Without a numeric argument, the value of the 'comment-begin'
  1237. variable is inserted at the beginning of the current line. If a
  1238. numeric argument is supplied, this command acts as a toggle: if the
  1239. characters at the beginning of the line do not match the value of
  1240. 'comment-begin', the value is inserted, otherwise the characters in
  1241. 'comment-begin' are deleted from the beginning of the line. In
  1242. either case, the line is accepted as if a newline had been typed.
  1243. 'dump-functions ()'
  1244. Print all of the functions and their key bindings to the Readline
  1245. output stream. If a numeric argument is supplied, the output is
  1246. formatted in such a way that it can be made part of an INPUTRC
  1247. file. This command is unbound by default.
  1248. 'dump-variables ()'
  1249. Print all of the settable variables and their values to the
  1250. Readline output stream. If a numeric argument is supplied, the
  1251. output is formatted in such a way that it can be made part of an
  1252. INPUTRC file. This command is unbound by default.
  1253. 'dump-macros ()'
  1254. Print all of the Readline key sequences bound to macros and the
  1255. strings they output. If a numeric argument is supplied, the output
  1256. is formatted in such a way that it can be made part of an INPUTRC
  1257. file. This command is unbound by default.
  1258. 'emacs-editing-mode (C-e)'
  1259. When in 'vi' command mode, this causes a switch to 'emacs' editing
  1260. mode.
  1261. 'vi-editing-mode (M-C-j)'
  1262. When in 'emacs' editing mode, this causes a switch to 'vi' editing
  1263. mode.
  1264. 
  1265. File: rluserman.info, Node: Readline vi Mode, Prev: Bindable Readline Commands, Up: Command Line Editing
  1266. 1.5 Readline vi Mode
  1267. ====================
  1268. While the Readline library does not have a full set of 'vi' editing
  1269. functions, it does contain enough to allow simple editing of the line.
  1270. The Readline 'vi' mode behaves as specified in the POSIX standard.
  1271. In order to switch interactively between 'emacs' and 'vi' editing
  1272. modes, use the command 'M-C-j' (bound to emacs-editing-mode when in 'vi'
  1273. mode and to vi-editing-mode in 'emacs' mode). The Readline default is
  1274. 'emacs' mode.
  1275. When you enter a line in 'vi' mode, you are already placed in
  1276. 'insertion' mode, as if you had typed an 'i'. Pressing <ESC> switches
  1277. you into 'command' mode, where you can edit the text of the line with
  1278. the standard 'vi' movement keys, move to previous history lines with 'k'
  1279. and subsequent lines with 'j', and so forth.
  1280. 
  1281. File: rluserman.info, Node: GNU Free Documentation License, Prev: Command Line Editing, Up: Top
  1282. Appendix A GNU Free Documentation License
  1283. *****************************************
  1284. Version 1.3, 3 November 2008
  1285. Copyright (C) 2000, 2001, 2002, 2007, 2008 Free Software Foundation, Inc.
  1286. <http://fsf.org/>
  1287. Everyone is permitted to copy and distribute verbatim copies
  1288. of this license document, but changing it is not allowed.
  1289. 0. PREAMBLE
  1290. The purpose of this License is to make a manual, textbook, or other
  1291. functional and useful document "free" in the sense of freedom: to
  1292. assure everyone the effective freedom to copy and redistribute it,
  1293. with or without modifying it, either commercially or
  1294. noncommercially. Secondarily, this License preserves for the
  1295. author and publisher a way to get credit for their work, while not
  1296. being considered responsible for modifications made by others.
  1297. This License is a kind of "copyleft", which means that derivative
  1298. works of the document must themselves be free in the same sense.
  1299. It complements the GNU General Public License, which is a copyleft
  1300. license designed for free software.
  1301. We have designed this License in order to use it for manuals for
  1302. free software, because free software needs free documentation: a
  1303. free program should come with manuals providing the same freedoms
  1304. that the software does. But this License is not limited to
  1305. software manuals; it can be used for any textual work, regardless
  1306. of subject matter or whether it is published as a printed book. We
  1307. recommend this License principally for works whose purpose is
  1308. instruction or reference.
  1309. 1. APPLICABILITY AND DEFINITIONS
  1310. This License applies to any manual or other work, in any medium,
  1311. that contains a notice placed by the copyright holder saying it can
  1312. be distributed under the terms of this License. Such a notice
  1313. grants a world-wide, royalty-free license, unlimited in duration,
  1314. to use that work under the conditions stated herein. The
  1315. "Document", below, refers to any such manual or work. Any member
  1316. of the public is a licensee, and is addressed as "you". You accept
  1317. the license if you copy, modify or distribute the work in a way
  1318. requiring permission under copyright law.
  1319. A "Modified Version" of the Document means any work containing the
  1320. Document or a portion of it, either copied verbatim, or with
  1321. modifications and/or translated into another language.
  1322. A "Secondary Section" is a named appendix or a front-matter section
  1323. of the Document that deals exclusively with the relationship of the
  1324. publishers or authors of the Document to the Document's overall
  1325. subject (or to related matters) and contains nothing that could
  1326. fall directly within that overall subject. (Thus, if the Document
  1327. is in part a textbook of mathematics, a Secondary Section may not
  1328. explain any mathematics.) The relationship could be a matter of
  1329. historical connection with the subject or with related matters, or
  1330. of legal, commercial, philosophical, ethical or political position
  1331. regarding them.
  1332. The "Invariant Sections" are certain Secondary Sections whose
  1333. titles are designated, as being those of Invariant Sections, in the
  1334. notice that says that the Document is released under this License.
  1335. If a section does not fit the above definition of Secondary then it
  1336. is not allowed to be designated as Invariant. The Document may
  1337. contain zero Invariant Sections. If the Document does not identify
  1338. any Invariant Sections then there are none.
  1339. The "Cover Texts" are certain short passages of text that are
  1340. listed, as Front-Cover Texts or Back-Cover Texts, in the notice
  1341. that says that the Document is released under this License. A
  1342. Front-Cover Text may be at most 5 words, and a Back-Cover Text may
  1343. be at most 25 words.
  1344. A "Transparent" copy of the Document means a machine-readable copy,
  1345. represented in a format whose specification is available to the
  1346. general public, that is suitable for revising the document
  1347. straightforwardly with generic text editors or (for images composed
  1348. of pixels) generic paint programs or (for drawings) some widely
  1349. available drawing editor, and that is suitable for input to text
  1350. formatters or for automatic translation to a variety of formats
  1351. suitable for input to text formatters. A copy made in an otherwise
  1352. Transparent file format whose markup, or absence of markup, has
  1353. been arranged to thwart or discourage subsequent modification by
  1354. readers is not Transparent. An image format is not Transparent if
  1355. used for any substantial amount of text. A copy that is not
  1356. "Transparent" is called "Opaque".
  1357. Examples of suitable formats for Transparent copies include plain
  1358. ASCII without markup, Texinfo input format, LaTeX input format,
  1359. SGML or XML using a publicly available DTD, and standard-conforming
  1360. simple HTML, PostScript or PDF designed for human modification.
  1361. Examples of transparent image formats include PNG, XCF and JPG.
  1362. Opaque formats include proprietary formats that can be read and
  1363. edited only by proprietary word processors, SGML or XML for which
  1364. the DTD and/or processing tools are not generally available, and
  1365. the machine-generated HTML, PostScript or PDF produced by some word
  1366. processors for output purposes only.
  1367. The "Title Page" means, for a printed book, the title page itself,
  1368. plus such following pages as are needed to hold, legibly, the
  1369. material this License requires to appear in the title page. For
  1370. works in formats which do not have any title page as such, "Title
  1371. Page" means the text near the most prominent appearance of the
  1372. work's title, preceding the beginning of the body of the text.
  1373. The "publisher" means any person or entity that distributes copies
  1374. of the Document to the public.
  1375. A section "Entitled XYZ" means a named subunit of the Document
  1376. whose title either is precisely XYZ or contains XYZ in parentheses
  1377. following text that translates XYZ in another language. (Here XYZ
  1378. stands for a specific section name mentioned below, such as
  1379. "Acknowledgements", "Dedications", "Endorsements", or "History".)
  1380. To "Preserve the Title" of such a section when you modify the
  1381. Document means that it remains a section "Entitled XYZ" according
  1382. to this definition.
  1383. The Document may include Warranty Disclaimers next to the notice
  1384. which states that this License applies to the Document. These
  1385. Warranty Disclaimers are considered to be included by reference in
  1386. this License, but only as regards disclaiming warranties: any other
  1387. implication that these Warranty Disclaimers may have is void and
  1388. has no effect on the meaning of this License.
  1389. 2. VERBATIM COPYING
  1390. You may copy and distribute the Document in any medium, either
  1391. commercially or noncommercially, provided that this License, the
  1392. copyright notices, and the license notice saying this License
  1393. applies to the Document are reproduced in all copies, and that you
  1394. add no other conditions whatsoever to those of this License. You
  1395. may not use technical measures to obstruct or control the reading
  1396. or further copying of the copies you make or distribute. However,
  1397. you may accept compensation in exchange for copies. If you
  1398. distribute a large enough number of copies you must also follow the
  1399. conditions in section 3.
  1400. You may also lend copies, under the same conditions stated above,
  1401. and you may publicly display copies.
  1402. 3. COPYING IN QUANTITY
  1403. If you publish printed copies (or copies in media that commonly
  1404. have printed covers) of the Document, numbering more than 100, and
  1405. the Document's license notice requires Cover Texts, you must
  1406. enclose the copies in covers that carry, clearly and legibly, all
  1407. these Cover Texts: Front-Cover Texts on the front cover, and
  1408. Back-Cover Texts on the back cover. Both covers must also clearly
  1409. and legibly identify you as the publisher of these copies. The
  1410. front cover must present the full title with all words of the title
  1411. equally prominent and visible. You may add other material on the
  1412. covers in addition. Copying with changes limited to the covers, as
  1413. long as they preserve the title of the Document and satisfy these
  1414. conditions, can be treated as verbatim copying in other respects.
  1415. If the required texts for either cover are too voluminous to fit
  1416. legibly, you should put the first ones listed (as many as fit
  1417. reasonably) on the actual cover, and continue the rest onto
  1418. adjacent pages.
  1419. If you publish or distribute Opaque copies of the Document
  1420. numbering more than 100, you must either include a machine-readable
  1421. Transparent copy along with each Opaque copy, or state in or with
  1422. each Opaque copy a computer-network location from which the general
  1423. network-using public has access to download using public-standard
  1424. network protocols a complete Transparent copy of the Document, free
  1425. of added material. If you use the latter option, you must take
  1426. reasonably prudent steps, when you begin distribution of Opaque
  1427. copies in quantity, to ensure that this Transparent copy will
  1428. remain thus accessible at the stated location until at least one
  1429. year after the last time you distribute an Opaque copy (directly or
  1430. through your agents or retailers) of that edition to the public.
  1431. It is requested, but not required, that you contact the authors of
  1432. the Document well before redistributing any large number of copies,
  1433. to give them a chance to provide you with an updated version of the
  1434. Document.
  1435. 4. MODIFICATIONS
  1436. You may copy and distribute a Modified Version of the Document
  1437. under the conditions of sections 2 and 3 above, provided that you
  1438. release the Modified Version under precisely this License, with the
  1439. Modified Version filling the role of the Document, thus licensing
  1440. distribution and modification of the Modified Version to whoever
  1441. possesses a copy of it. In addition, you must do these things in
  1442. the Modified Version:
  1443. A. Use in the Title Page (and on the covers, if any) a title
  1444. distinct from that of the Document, and from those of previous
  1445. versions (which should, if there were any, be listed in the
  1446. History section of the Document). You may use the same title
  1447. as a previous version if the original publisher of that
  1448. version gives permission.
  1449. B. List on the Title Page, as authors, one or more persons or
  1450. entities responsible for authorship of the modifications in
  1451. the Modified Version, together with at least five of the
  1452. principal authors of the Document (all of its principal
  1453. authors, if it has fewer than five), unless they release you
  1454. from this requirement.
  1455. C. State on the Title page the name of the publisher of the
  1456. Modified Version, as the publisher.
  1457. D. Preserve all the copyright notices of the Document.
  1458. E. Add an appropriate copyright notice for your modifications
  1459. adjacent to the other copyright notices.
  1460. F. Include, immediately after the copyright notices, a license
  1461. notice giving the public permission to use the Modified
  1462. Version under the terms of this License, in the form shown in
  1463. the Addendum below.
  1464. G. Preserve in that license notice the full lists of Invariant
  1465. Sections and required Cover Texts given in the Document's
  1466. license notice.
  1467. H. Include an unaltered copy of this License.
  1468. I. Preserve the section Entitled "History", Preserve its Title,
  1469. and add to it an item stating at least the title, year, new
  1470. authors, and publisher of the Modified Version as given on the
  1471. Title Page. If there is no section Entitled "History" in the
  1472. Document, create one stating the title, year, authors, and
  1473. publisher of the Document as given on its Title Page, then add
  1474. an item describing the Modified Version as stated in the
  1475. previous sentence.
  1476. J. Preserve the network location, if any, given in the Document
  1477. for public access to a Transparent copy of the Document, and
  1478. likewise the network locations given in the Document for
  1479. previous versions it was based on. These may be placed in the
  1480. "History" section. You may omit a network location for a work
  1481. that was published at least four years before the Document
  1482. itself, or if the original publisher of the version it refers
  1483. to gives permission.
  1484. K. For any section Entitled "Acknowledgements" or "Dedications",
  1485. Preserve the Title of the section, and preserve in the section
  1486. all the substance and tone of each of the contributor
  1487. acknowledgements and/or dedications given therein.
  1488. L. Preserve all the Invariant Sections of the Document, unaltered
  1489. in their text and in their titles. Section numbers or the
  1490. equivalent are not considered part of the section titles.
  1491. M. Delete any section Entitled "Endorsements". Such a section
  1492. may not be included in the Modified Version.
  1493. N. Do not retitle any existing section to be Entitled
  1494. "Endorsements" or to conflict in title with any Invariant
  1495. Section.
  1496. O. Preserve any Warranty Disclaimers.
  1497. If the Modified Version includes new front-matter sections or
  1498. appendices that qualify as Secondary Sections and contain no
  1499. material copied from the Document, you may at your option designate
  1500. some or all of these sections as invariant. To do this, add their
  1501. titles to the list of Invariant Sections in the Modified Version's
  1502. license notice. These titles must be distinct from any other
  1503. section titles.
  1504. You may add a section Entitled "Endorsements", provided it contains
  1505. nothing but endorsements of your Modified Version by various
  1506. parties--for example, statements of peer review or that the text
  1507. has been approved by an organization as the authoritative
  1508. definition of a standard.
  1509. You may add a passage of up to five words as a Front-Cover Text,
  1510. and a passage of up to 25 words as a Back-Cover Text, to the end of
  1511. the list of Cover Texts in the Modified Version. Only one passage
  1512. of Front-Cover Text and one of Back-Cover Text may be added by (or
  1513. through arrangements made by) any one entity. If the Document
  1514. already includes a cover text for the same cover, previously added
  1515. by you or by arrangement made by the same entity you are acting on
  1516. behalf of, you may not add another; but you may replace the old
  1517. one, on explicit permission from the previous publisher that added
  1518. the old one.
  1519. The author(s) and publisher(s) of the Document do not by this
  1520. License give permission to use their names for publicity for or to
  1521. assert or imply endorsement of any Modified Version.
  1522. 5. COMBINING DOCUMENTS
  1523. You may combine the Document with other documents released under
  1524. this License, under the terms defined in section 4 above for
  1525. modified versions, provided that you include in the combination all
  1526. of the Invariant Sections of all of the original documents,
  1527. unmodified, and list them all as Invariant Sections of your
  1528. combined work in its license notice, and that you preserve all
  1529. their Warranty Disclaimers.
  1530. The combined work need only contain one copy of this License, and
  1531. multiple identical Invariant Sections may be replaced with a single
  1532. copy. If there are multiple Invariant Sections with the same name
  1533. but different contents, make the title of each such section unique
  1534. by adding at the end of it, in parentheses, the name of the
  1535. original author or publisher of that section if known, or else a
  1536. unique number. Make the same adjustment to the section titles in
  1537. the list of Invariant Sections in the license notice of the
  1538. combined work.
  1539. In the combination, you must combine any sections Entitled
  1540. "History" in the various original documents, forming one section
  1541. Entitled "History"; likewise combine any sections Entitled
  1542. "Acknowledgements", and any sections Entitled "Dedications". You
  1543. must delete all sections Entitled "Endorsements."
  1544. 6. COLLECTIONS OF DOCUMENTS
  1545. You may make a collection consisting of the Document and other
  1546. documents released under this License, and replace the individual
  1547. copies of this License in the various documents with a single copy
  1548. that is included in the collection, provided that you follow the
  1549. rules of this License for verbatim copying of each of the documents
  1550. in all other respects.
  1551. You may extract a single document from such a collection, and
  1552. distribute it individually under this License, provided you insert
  1553. a copy of this License into the extracted document, and follow this
  1554. License in all other respects regarding verbatim copying of that
  1555. document.
  1556. 7. AGGREGATION WITH INDEPENDENT WORKS
  1557. A compilation of the Document or its derivatives with other
  1558. separate and independent documents or works, in or on a volume of a
  1559. storage or distribution medium, is called an "aggregate" if the
  1560. copyright resulting from the compilation is not used to limit the
  1561. legal rights of the compilation's users beyond what the individual
  1562. works permit. When the Document is included in an aggregate, this
  1563. License does not apply to the other works in the aggregate which
  1564. are not themselves derivative works of the Document.
  1565. If the Cover Text requirement of section 3 is applicable to these
  1566. copies of the Document, then if the Document is less than one half
  1567. of the entire aggregate, the Document's Cover Texts may be placed
  1568. on covers that bracket the Document within the aggregate, or the
  1569. electronic equivalent of covers if the Document is in electronic
  1570. form. Otherwise they must appear on printed covers that bracket
  1571. the whole aggregate.
  1572. 8. TRANSLATION
  1573. Translation is considered a kind of modification, so you may
  1574. distribute translations of the Document under the terms of section
  1575. 4. Replacing Invariant Sections with translations requires special
  1576. permission from their copyright holders, but you may include
  1577. translations of some or all Invariant Sections in addition to the
  1578. original versions of these Invariant Sections. You may include a
  1579. translation of this License, and all the license notices in the
  1580. Document, and any Warranty Disclaimers, provided that you also
  1581. include the original English version of this License and the
  1582. original versions of those notices and disclaimers. In case of a
  1583. disagreement between the translation and the original version of
  1584. this License or a notice or disclaimer, the original version will
  1585. prevail.
  1586. If a section in the Document is Entitled "Acknowledgements",
  1587. "Dedications", or "History", the requirement (section 4) to
  1588. Preserve its Title (section 1) will typically require changing the
  1589. actual title.
  1590. 9. TERMINATION
  1591. You may not copy, modify, sublicense, or distribute the Document
  1592. except as expressly provided under this License. Any attempt
  1593. otherwise to copy, modify, sublicense, or distribute it is void,
  1594. and will automatically terminate your rights under this License.
  1595. However, if you cease all violation of this License, then your
  1596. license from a particular copyright holder is reinstated (a)
  1597. provisionally, unless and until the copyright holder explicitly and
  1598. finally terminates your license, and (b) permanently, if the
  1599. copyright holder fails to notify you of the violation by some
  1600. reasonable means prior to 60 days after the cessation.
  1601. Moreover, your license from a particular copyright holder is
  1602. reinstated permanently if the copyright holder notifies you of the
  1603. violation by some reasonable means, this is the first time you have
  1604. received notice of violation of this License (for any work) from
  1605. that copyright holder, and you cure the violation prior to 30 days
  1606. after your receipt of the notice.
  1607. Termination of your rights under this section does not terminate
  1608. the licenses of parties who have received copies or rights from you
  1609. under this License. If your rights have been terminated and not
  1610. permanently reinstated, receipt of a copy of some or all of the
  1611. same material does not give you any rights to use it.
  1612. 10. FUTURE REVISIONS OF THIS LICENSE
  1613. The Free Software Foundation may publish new, revised versions of
  1614. the GNU Free Documentation License from time to time. Such new
  1615. versions will be similar in spirit to the present version, but may
  1616. differ in detail to address new problems or concerns. See
  1617. <http://www.gnu.org/copyleft/>.
  1618. Each version of the License is given a distinguishing version
  1619. number. If the Document specifies that a particular numbered
  1620. version of this License "or any later version" applies to it, you
  1621. have the option of following the terms and conditions either of
  1622. that specified version or of any later version that has been
  1623. published (not as a draft) by the Free Software Foundation. If the
  1624. Document does not specify a version number of this License, you may
  1625. choose any version ever published (not as a draft) by the Free
  1626. Software Foundation. If the Document specifies that a proxy can
  1627. decide which future versions of this License can be used, that
  1628. proxy's public statement of acceptance of a version permanently
  1629. authorizes you to choose that version for the Document.
  1630. 11. RELICENSING
  1631. "Massive Multiauthor Collaboration Site" (or "MMC Site") means any
  1632. World Wide Web server that publishes copyrightable works and also
  1633. provides prominent facilities for anybody to edit those works. A
  1634. public wiki that anybody can edit is an example of such a server.
  1635. A "Massive Multiauthor Collaboration" (or "MMC") contained in the
  1636. site means any set of copyrightable works thus published on the MMC
  1637. site.
  1638. "CC-BY-SA" means the Creative Commons Attribution-Share Alike 3.0
  1639. license published by Creative Commons Corporation, a not-for-profit
  1640. corporation with a principal place of business in San Francisco,
  1641. California, as well as future copyleft versions of that license
  1642. published by that same organization.
  1643. "Incorporate" means to publish or republish a Document, in whole or
  1644. in part, as part of another Document.
  1645. An MMC is "eligible for relicensing" if it is licensed under this
  1646. License, and if all works that were first published under this
  1647. License somewhere other than this MMC, and subsequently
  1648. incorporated in whole or in part into the MMC, (1) had no cover
  1649. texts or invariant sections, and (2) were thus incorporated prior
  1650. to November 1, 2008.
  1651. The operator of an MMC Site may republish an MMC contained in the
  1652. site under CC-BY-SA on the same site at any time before August 1,
  1653. 2009, provided the MMC is eligible for relicensing.
  1654. ADDENDUM: How to use this License for your documents
  1655. ====================================================
  1656. To use this License in a document you have written, include a copy of
  1657. the License in the document and put the following copyright and license
  1658. notices just after the title page:
  1659. Copyright (C) YEAR YOUR NAME.
  1660. Permission is granted to copy, distribute and/or modify this document
  1661. under the terms of the GNU Free Documentation License, Version 1.3
  1662. or any later version published by the Free Software Foundation;
  1663. with no Invariant Sections, no Front-Cover Texts, and no Back-Cover
  1664. Texts. A copy of the license is included in the section entitled ``GNU
  1665. Free Documentation License''.
  1666. If you have Invariant Sections, Front-Cover Texts and Back-Cover
  1667. Texts, replace the "with...Texts." line with this:
  1668. with the Invariant Sections being LIST THEIR TITLES, with
  1669. the Front-Cover Texts being LIST, and with the Back-Cover Texts
  1670. being LIST.
  1671. If you have Invariant Sections without Cover Texts, or some other
  1672. combination of the three, merge those two alternatives to suit the
  1673. situation.
  1674. If your document contains nontrivial examples of program code, we
  1675. recommend releasing these examples in parallel under your choice of free
  1676. software license, such as the GNU General Public License, to permit
  1677. their use in free software.
  1678. 
  1679. Tag Table:
  1680. Node: Top909
  1681. Node: Command Line Editing1431
  1682. Node: Introduction and Notation2085
  1683. Node: Readline Interaction3710
  1684. Node: Readline Bare Essentials4903
  1685. Node: Readline Movement Commands6694
  1686. Node: Readline Killing Commands7656
  1687. Node: Readline Arguments9579
  1688. Node: Searching10625
  1689. Node: Readline Init File12779
  1690. Node: Readline Init File Syntax13936
  1691. Node: Conditional Init Constructs37240
  1692. Node: Sample Init File41438
  1693. Node: Bindable Readline Commands44564
  1694. Node: Commands For Moving45620
  1695. Node: Commands For History47380
  1696. Node: Commands For Text52345
  1697. Node: Commands For Killing56049
  1698. Node: Numeric Arguments58764
  1699. Node: Commands For Completion59905
  1700. Node: Keyboard Macros61875
  1701. Node: Miscellaneous Commands62565
  1702. Node: Readline vi Mode66494
  1703. Node: GNU Free Documentation License67408
  1704. 
  1705. End Tag Table
  1706. 
  1707. Local Variables:
  1708. coding: utf-8
  1709. End: