📄 readline_3.ps
字号:
403.2 Q -.1(ve)-.4 G(rt\255meta \(On\)).1 E F0 .613(If set to)144 415.2R F1(On)3.113 E F0 3.113(,r)C .613(eadline will con)-3.113 F -.15(ve)-.4G .613(rt characters with the eighth bit set to an ASCII k).15 F .912-.15(ey s)-.1 H .612(equence by).15 F 1.315(stripping the eighth bit an\d pre\214xing it with an escape character \(in ef)144 427.2 R 1.316(fect, using escape as the)-.25 F F2(meta pr)144 439.2 Q(e\214x)-.37 EF0(\).)A F1(disable\255completion \(Off\))108 451.2 Q F0 .038(If set to)144 463.2 R F1(On)2.538 E F0 2.538(,r)C .038(eadline will inhibit w)-2.538 F .038(ord completion.)-.1 F .038(Completion characters will be inserted into the)5.038 F(line as if the)144 475.2 Q 2.5(yh)-.15 G(ad been mapped to)-2.5 E F1(self-insert)2.5 EF0(.)A F1(editing\255mode \(emacs\))108 487.2 Q F0 .215(Controls whether readline be)144 499.2 R .215(gins with a set of k)-.15F .515 -.15(ey b)-.1 H .216(indings similar to emacs or vi.).15 F F1(editing\255mode)5.216 E F0(can be set to either)144 511.2 Q F1(emacs)2.5 E F0(or)2.5 E F1(vi)2.5 E F0(.)A F1(enable\255k)108 523.2 Q(eypad \(Off\))-.1 E F0 .893(When set to)144 535.2 R F1(On)3.393 E F03.393(,r)C .893(eadline will try to enable the application k)-3.393 F-.15(ey)-.1 G .893(pad when it is called.).15 F .892(Some sys-)5.893 F(tems need this to enable the arro)144 547.2 Q 2.5(wk)-.25 G -.15(ey)-2.6 G(s.).15 E F1(expand\255tilde \(Off\))108 559.2 Q F0(If set to)144571.2 Q F1(on)2.5 E F0 2.5(,t)C(ilde e)-2.5 E(xpansion is performed when readline attempts w)-.15 E(ord completion.)-.1 E F1(history-pr)108 583.2 Q(eser)-.18 E -.1(ve)-.1 G(-point).1 E F01.492(If set to)144 595.2 R F1(on)3.992 E F0 3.992(,t)C 1.493(he histor\y code attempts to place point at the same location on each history lin\e)-3.992 F(retri)144 607.2 Q -.15(ve)-.25 G 2.5(dw).15 G(ith)-2.5 E F1(pr)2.5 E -.15(ev)-.18 G(ious-history).15 E F0(or)2.5 E F1(next-history)2.5 E F0(.)A F1(horizontal\255scr)108 619.2 Q(oll\255mode \(Off\))-.18 EF0 .449(When set to)144 631.2 R F1(On)2.949 E F0 2.949(,m)C(ak)-2.949 E.448(es readline use a single line for display)-.1 F 2.948(,s)-.65 G.448(crolling the input horizontally on a)-2.948 F 1.194(single screen \line when it becomes longer than the screen width rather than wrapping \to a ne)144 643.2 R(w)-.25 E(line.)144 655.2 Q F1(input\255meta \(Off\))108 667.2 Q F0 .367(If set to)144 679.2 R F1(On)2.867 E F0 2.867(,r)C.367(eadline will enable eight-bit input \(that is, it will not clear t\he eighth bit in the char)-2.867 F(-)-.2 E .956(acters it reads\), re)144 691.2 R -.05(ga)-.15 G .956(rdless of what the terminal claims it can support.).05 F .957(The name)5.956 F F1(meta\255\215ag)3.457 E F0 .957(is a)3.457 F(synon)144 703.2 Q(ym for this v)-.15 E(ariable.)-.25 E(GNU Readline 4.3)72 768 Q(2002 January 22)126.24 E(3)195.95 E EP%%Page: 4 4%%BeginPageSetupBP%%EndPageSetup/F0 10/Times-Roman@0 SF 342.2(READLINE\(3\) READLINE\(3\))72 48 R/F1 10/Times-Bold@0 SF(isear)108 84 Q(ch\255terminators \(`)-.18 E(`C\255[ C\255J')-.63 E('\))-.63 E F0 .439(The string of characters tha\t should terminate an incremental search without subsequently e)144 96 R-.15(xe)-.15 G(cut-).15 E .934(ing the character as a command.)144 108 R.935(If this v)5.935 F .935(ariable has not been gi)-.25 F -.15(ve)-.25G 3.435(nav).15 G .935(alue, the characters)-3.685 F/F2 10/Times-Italic@0 SF(ESC)3.435 E F0(and)144 120 Q F2(C\255J)2.5 E F0(will terminate an incremental search.)2.5 E F1 -.1(ke)108 132 S(ymap \(emacs\)).1 E F0 2.323(Set the current readline k)144 144 R -.15(ey)-.1 G 4.823(map. The).15 F 2.323(set of le)4.823 F -.05(ga)-.15 G4.823(lk).05 G -.15(ey)-4.923 G 2.323(map names is).15 F F2 2.323(emacs, emacs-standar)4.823 F(d,)-.37 E .808(emacs-meta, emacs-ctlx, vi, vi-mo)144 156 R(ve)-.1 E 3.308(,v)-.1 G(i-command)-3.308 E F0 3.308(,a)C(nd)-3.308 E F2(vi-insert)3.308 E F0(.).68 E F2(vi)5.808 E F0 .808(is equi)3.308 F -.25(va)-.25 G .809(lent to).25 F F2(vi-command)3.309 E F0(;)A F2(emacs)144 168 Q F0 .697(is equi)3.197 F -.25(va)-.25 G .697(lent to).25 F F2(emacs-standar)3.197 E(d)-.37 E F0 5.697(.T)C .697(he def)-5.697 F .697(ault v)-.1 F .697(alue is)-.25 F F2(emacs)3.197 E F0 5.697(.T).27 G .697(he v)-5.697 F.697(alue of)-.25 F F1(editing\255mode)3.196 E F0(also af)144 180 Q(fects the def)-.25 E(ault k)-.1 E -.15(ey)-.1 G(map.).15 E F1(mark\255dir)108 192 Q(ectories \(On\))-.18 E F0(If set to)144 204 Q F1(On)2.5 E F0 2.5(,c)C(ompleted directory names ha)-2.5 E .3 -.15(ve a s)-.2 H(lash appended.).15 E F1(mark\255modi\214ed\255lines \(Off\))108216 Q F0(If set to)144 228 Q F1(On)2.5 E F0 2.5(,h)C(istory lines that ha)-2.5 E .3 -.15(ve b)-.2 H(een modi\214ed are displayed with a preceding asterisk \().15 E F1(*)AF0(\).)A F1(mark\255symlink)108 240 Q(ed\255dir)-.1 E(ectories \(Off\))-.18 E F0 .175(If set to)144 252 R F1(On)2.675 E F0 2.675(,c)C .175(ompleted names which are symbolic links to directories ha)-2.675 F .475-.15(ve a s)-.2 H .175(lash appended \(sub-).15 F(ject to the v)144 264Q(alue of)-.25 E F1(mark\255dir)2.5 E(ectories)-.18 E F0(\).)A F1(match\255hidden\255\214les \(On\))108 276 Q F0 .193(This v)144 288 R.193(ariable, when set to)-.25 F F1(On)2.693 E F0 2.693(,c)C .192(auses readline to match \214les whose names be)-2.693 F .192(gin with a `.)-.15 F 2.692('\()-.7 G(hidden)-2.692 E 1.023(\214les\) when performing \214lename completion, unless the leading `.)144 300 R 3.523('i)-.7 G 3.523(ss)-3.523 G 1.024(upplied by the user in the)-3.523 F(\214lename to be completed.)144 312Q F1(output\255meta \(Off\))108 324 Q F0 .507(If set to)144 336 R F1(On)3.007 E F0 3.007(,r)C .507(eadline will display characters with the eig\hth bit set directly rather than as a meta-)-3.007 F(pre\214x)144 348 Q(ed escape sequence.)-.15 E F1(page\255completions \(On\))108 360 Q F0.808(If set to)144 372 R F1(On)3.308 E F0 3.308(,r)C .808(eadline uses an internal)-3.308 F F2(mor)3.308 E(e)-.37 E F0(-lik)A3.308(ep)-.1 G .808(ager to display a screenful of possible comple-)-3.308 F(tions at a time.)144 384 Q F1(print\255completions\255horizontally \(Off\))108 396 Q F0 1.319(If set to)144 408 R F1(On)3.819 E F0 3.819(,r)C 1.318(eadline will dis\play completions with matches sorted horizontally in alphabetical)-3.819F(order)144 420 Q 2.5(,r)-.4 G(ather than do)-2.5 E(wn the screen.)-.25E F1(sho)108 432 Q(w\255all\255if\255ambiguous \(Off\))-.1 E F0 .477(This alters the def)144 444 R .477(ault beha)-.1 F .477(vior of the completion functions.)-.2 F .478(If set to)5.478 F F1(on)2.978 E F0 2.978(,w)C .478(ords which ha)-3.078 F .778 -.15(ve m)-.2 H(ore).15 E 1.264(than one possible completion cause the matches to be l\isted immediately instead of ringing the)144 456 R(bell.)144 468 Q F1(visible\255stats \(Off\))108 480 Q F0 .846(If set to)144 492 R F1(On)3.346 E F0 3.346(,ac)C .846(haracter denoting a \214le')-3.346 F 3.346(st)-.55 G .846(ype as reported by)-3.346 F F2(stat)3.346 E F0 .846(\(2\) is appended to the \214lename)B(when listing possible completions.)144 504 Q F1(Conditional Constructs)87 520.8 Q F0 .05(Readline implements a f)108 532.8 R .05(acility simil\ar in spirit to the conditional compilation features of the C preproces\sor)-.1 F .096(which allo)108 544.8 R .096(ws k)-.25 F .396 -.15(ey b)-.1 H .096(indings and v).15 F .096(ariable settings to be performed as the result of tests.)-.25 F .097(There are four parser)5.096 F(directi)108 556.8 Q -.15(ve)-.25 G 2.5(su).15 G(sed.)-2.5 E F1($if)108 573.6 Q F0(The)24.89 E F1($if)2.963 EF0 .463(construct allo)2.963 F .462(ws bindings to be made based on the\ editing mode, the terminal being used,)-.25 F .477(or the application using readline.)144 585.6 R .477(The te)5.477 F .477(xt of the test e)-.15 F .477(xtends to the end of the line; no characters)-.15 F(are required to isolate it.)144 597.6 Q F1(mode)144 614.4 Q F0(The)12.67 E F1(mode=)3.712 E F0 1.212(form of the)3.712 F F1($if)3.711 E F0(directi)3.711 E 1.511 -.15(ve i)-.25 H 3.711(su).15 G 1.211(sed to test whether readline is in emacs or vi)-3.711 F 3.065(mode. This)180 626.4 R .565(may be used in conjunction with the)3.065 FF1 .565(set k)3.065 F(eymap)-.1 E F0 .565(command, for instance, to)3.065 F .03(set bindings in the)180 638.4 R F2(emacs-standar)2.529 E(d)-.37 E F0(and)2.529 E F2(emacs-ctlx)2.529 E F0 -.1(ke)2.529 G .029(ymaps only if readline is starting out)-.05 F(in emacs mode.)180 650.4Q F1(term)144 667.2 Q F0(The)15.46 E F1(term=)3.196 E F0 .696(form may be used to include terminal-speci\214c k)3.196 F .996 -.15(ey b)-.1 H .697(indings, perhaps to bind).15 F .654(the k)180 679.2 R.954 -.15(ey s)-.1 H .654(equences output by the terminal').15 F 3.154(sf)-.55 G .654(unction k)-3.154 F -.15(ey)-.1 G 3.154(s. The).15 F -.1(wo)3.154 G .654(rd on the right side of).1 F(the)180 691.2 Q F1(=)3.003E F0 .503(is tested ag)3.003 F .504(ainst the full name of the terminal\ and the portion of the terminal name)-.05 F(before the \214rst)180703.2 Q F1<ad>2.5 E F0 5(.T)C(his allo)-5 E(ws)-.25 E F2(sun)2.5 E F0(to match both)2.5 E F2(sun)2.5 E F0(and)2.5 E F2(sun\255cmd)2.5 E F02.5(,f).77 G(or instance.)-2.5 E(GNU Readline 4.3)72 768 Q(2002 January 22)126.24 E(4)195.95 E EP%%Page: 5 5%%BeginPageSetupBP%%EndPageSetup/F0 10/Times-Roman@0 SF 342.2(READLINE\(3\) READLINE\(3\))72 48 R/F1 10/Times-Bold@0 SF(application)144 84 Q F0(The)180 96 Q F1(application)3.003 E F0 .503(construct is used to include application-speci\214c settings.)3.003 F.503(Each program)5.503 F .114(using the readline library sets the)180108 R/F2 10/Times-Italic@0 SF .114(application name)2.614 F F0 2.614(,a)C .114(nd an initialization \214le can test for a)-2.614 F .501(particular v)180 120 R 3.001(alue. This)-.25 F .501(could be used to bind k)3.001 F .801 -.15(ey s)-.1 H .5(equences to functions useful for a spe-).15 F .396(ci\214c program.)180132 R -.15(Fo)5.396 G 2.896(ri).15 G .396(nstance, the follo)-2.896 F.396(wing command adds a k)-.25 F .696 -.15(ey s)-.1 H .397(equence that quotes the).15 F(current or pre)180 144 Q(vious w)-.25 E(ord in Bash:)-.1 E F1($if)180 168 Q F0(Bash)2.5 E 2.5(#Q)180 180 S(uote the current or pre)-2.5 E(vious w)-.25 E(ord)-.1 E("\\C-xq": "\\eb\\"\\ef\\"")180 192 Q F1($endif)180 204 Q($endif)108220.8 Q F0(This command, as seen in the pre)9.33 E(vious e)-.25 E(xample, terminates an)-.15 E F1($if)2.5 E F0(command.)2.5 E F1($else)108 237.6 Q F0(Commands in this branch of the)15.45 E F1($if)2.5 E F0(directi)2.5 E .3 -.15(ve a)-.25 H(re e).15 E -.15(xe)-.15 G(cuted if the test f).15 E(ails.)-.1 E F1($include)108 254.4 Q F0 .357(This directi)144 266.4 R .657 -.15(ve t)-.25 H(ak).15 E .357(es a single \214lename as an ar)-.1 F .356(gument and reads commands and bindings from that)-.18 F 2.5(\214le. F)144 278.4 R(or e)-.15 E(xample, the follo)-.15 E(wing directi)-.25 E .3-.15(ve w)-.25 H(ould read).05 E F2(/etc/inputr)2.5 E(c)-.37 E F0(:)A F1($include)144 302.4 Q F2(/etc/inputr)5.833 E(c)-.37 E/F3 10.95/Times-Bold@0 SF(SEARCHING)72 319.2 Q F0 1.003(Readline pro)108 331.2 R1.003(vides commands for searching through the command history for line\s containing a speci\214ed)-.15 F 2.5(string. There)108 343.2 R(are tw)2.5 E 2.5(os)-.1 G(earch modes:)-2.5 E F2(incr)2.5 E(emental)-.37 E F0(and)2.5 E F2(non-incr)2.5 E(emental)-.37 E F0(.).51 E .698(Incremental searches be)108 360 R .698(gin before the user has \214nished typing the search string.)-.15 F.697(As each character of the)5.697 F .112(search string is typed, readline displays the ne)108 372 R .112(xt entry from the history matching the string typed so f)-.15 F(ar)-.1E 5.113(.A)-.55 G(n)-5.113 E .545(incremental search requires only as man)108 384 R 3.045(yc)-.15 G .544(haracters as needed to \214nd the desired history entry)-3.045 F 5.544(.T)-.65 G 3.044(os)-6.344 G(earch)-3.044 E(backw)108 396 Q .18(ard in the history for a particular string, type)-.1 F F1(C\255r)2.681E F0 5.181(.T)C(yping)-5.981 E F1(C\255s)2.681 E F0 .181(searches forw)2.681 F .181(ard through the history)-.1 F(.)-.65 E .354(The characters present in the v)108 408 R .354(alue of the)-.25 F F1(isear)2.854 E(ch-terminators)-.18 E F0 -.25(va)2.854 G .354(riable are used to terminate an incremen-).25 F .6(tal search.)108 420R .6(If that v)5.6 F .6(ariable has not been assigned a v)-.25 F .6(alue the)-.25 F F2(Escape)3.1 E F0(and)3.1 E F1(C\255J)3.1 E F0 .6(characters will terminate an)3.1 F .123(incremental search.)108 432 RF1(C\255G)5.123 E F0 .123(will abort an incremental search and restore the original line.)2.623 F.122(When the search is)5.122 F(terminated, the history entry containin\g the search string becomes the current line.)108 444 Q 2.406 -.8(To \214)108 460.8 T .806(nd other matching entries in the history list, type).8 F F1(C\255s)3.306 E F0(or)3.306 E F1(C\255r)3.306 E F0 .806(as appropriate.)3.306 F.807(This will search back-)5.806 F -.1(wa)108 472.8 S 1.309(rd or forw).1 F 1.309(ard in the history for the ne)-.1 F 1.309(xt line matching the search string typed so f)-.15 F(ar)-.1 E 6.309(.A)-.55 G 1.609 -.15(ny o)-6.309 H 1.308(ther k).15 F -.15(ey)-.1 G .317(sequence bound to a readline command will terminate the search and e)108 484.8 R -.15(xe)-.15 G .318(cute that command.).15 F -.15(Fo)5.318 G2.818(ri).15 G(nstance,)-2.818 E 3.481(an)108 496.8 S -.25(ew)-3.481 G.981(line will terminate the search and accept the line, thereby e).25 F-.15(xe)-.15 G .98(cuting the command from the history).15 F 3.061(list. A)108 508.8 R(mo)3.061 E -.15(ve)-.15 G .562(ment command will terminate the search, mak).15 F 3.062(et)-.1 G .562(he last line found the current line, and be)-3.062 F(gin)-.15 E(editing.)108 520.8 Q .567(Non-incremental searches read the entire sea\rch string before starting to search for matching history lines.)108537.6 R(The search string may be typed by the user or be part of the co\ntents of the current line.)108 549.6 Q F3(EDITING COMMANDS)72 566.4 QF0 1.391(The follo)108 578.4 R 1.391(wing is a list of the names of the commands and the def)-.25 F 1.391(ault k)-.1 F 1.691 -.15(ey s)-.1 H 1.391(equences to which the).15 F3.892(ya)-.15 G(re)-3.892 E 2.5(bound. Command)108 590.4 R(names without an accompan)2.5 E(ying k)-.15 E .3 -.15(ey s)-.1 H(equence are unbound by def).15 E(ault.)-.1 E .055(In the follo)108607.2 R .055(wing descriptions,)-.25 F F2(point)2.555 E F0 .055(refers to the current cursor position, and)2.555 F F2(mark)2.555 E F0.054(refers to a cursor position)2.554 F(sa)108 619.2 Q -.15(ve)-.2 G2.5(db).15 G 2.5(yt)-2.5 G(he)-2.5 E F1(set\255mark)2.5 E F0 2.5(command. The)2.5 F(te)2.5 E(xt between the point and mark is referred to as the)-.15 E F2 -.37(re)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -