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

📄 rluser.texinfo

📁 这个是LINUX下的GDB调度工具的源码
💻 TEXINFO
📖 第 1 页 / 共 5 页
字号:
Lines beginning with a @samp{$} indicate conditionalconstructs (@pxref{Conditional Init Constructs}).  Other linesdenote variable settings and key bindings.@table @asis@item Variable SettingsYou can modify the run-time behavior of Readline byaltering the values of variables in Readlineusing the @code{set} command within the init file.The syntax is simple:@exampleset @var{variable} @var{value}@end example@noindentHere, for example, is how tochange from the default Emacs-like key binding to use@code{vi} line editing commands:@exampleset editing-mode vi@end exampleVariable names and values, where appropriate, are recognized without regardto case. @ifset BashFeaturesThe @w{@code{bind -V}} command lists the current Readline variable namesand values.  @xref{Bash Builtins}.@end ifsetA great deal of run-time behavior is changeable with the followingvariables.@cindex variables, readline@table @code@item bell-style@vindex bell-styleControls what happens when Readline wants to ring the terminal bell.If set to @samp{none}, Readline never rings the bell.  If set to@samp{visible}, Readline uses a visible bell if one is available.If set to @samp{audible} (the default), Readline attempts to ringthe terminal's bell.@item comment-begin@vindex comment-beginThe string to insert at the beginning of the line when the@code{insert-comment} command is executed.  The default valueis @code{"#"}.@item completion-ignore-caseIf set to @samp{on}, Readline performs filename matching and completionin a case-insensitive fashion.The default value is @samp{off}.@item completion-query-items@vindex completion-query-itemsThe number of possible completions that determines when the user isasked whether he wants to see the list of possibilities.  If thenumber of possible completions is greater than this value,Readline will ask the user whether or not he wishes to viewthem; otherwise, they are simply listed.This variable must be set to an integer value greater than or equal to 0.The default limit is @code{100}.@item convert-meta@vindex convert-metaIf set to @samp{on}, Readline will convert characters with theeighth bit set to an @sc{ascii} key sequence by stripping the eighthbit and prefixing an @key{ESC} character, converting them to ameta-prefixed key sequence.  The default value is @samp{on}.@item disable-completion@vindex disable-completionIf set to @samp{On}, Readline will inhibit word completion.Completion  characters will be inserted into the line as if they hadbeen mapped to @code{self-insert}.  The default is @samp{off}.@item editing-mode@vindex editing-modeThe @code{editing-mode} variable controls which default set ofkey bindings is used.  By default, Readline starts up in Emacs editingmode, where the keystrokes are most similar to Emacs.  This variable can beset to either @samp{emacs} or @samp{vi}.@item enable-keypad@vindex enable-keypadWhen set to @samp{on}, Readline will try to enable the applicationkeypad when it is called.  Some systems need this to enable thearrow keys.  The default is @samp{off}.@item expand-tilde@vindex expand-tildeIf set to @samp{on}, tilde expansion is performed when Readlineattempts word completion.  The default is @samp{off}.@vindex history-preserve-pointIf set to @samp{on}, the history code attempts to place point at thesame location on each history line retrived with @code{previous-history}or @code{next-history}.@item horizontal-scroll-mode@vindex horizontal-scroll-modeThis variable can be set to either @samp{on} or @samp{off}.  Setting itto @samp{on} means that the text of the lines being edited will scrollhorizontally on a single screen line when they are longer than the widthof the screen, instead of wrapping onto a new screen line.  By default,this variable is set to @samp{off}.@item input-meta@vindex input-meta@vindex meta-flagIf set to @samp{on}, Readline will enable eight-bit input (itwill not clear the eighth bit in the characters it reads),regardless of what the terminal claims it can support.  Thedefault value is @samp{off}.  The name @code{meta-flag} is asynonym for this variable.@item isearch-terminators@vindex isearch-terminatorsThe string of characters that should terminate an incremental search withoutsubsequently executing the character as a command (@pxref{Searching}).If this variable has not been given a value, the characters @key{ESC} and@kbd{C-J} will terminate an incremental search.@item keymap@vindex keymapSets Readline's idea of the current keymap for key binding commands.Acceptable @code{keymap} names are@code{emacs},@code{emacs-standard},@code{emacs-meta},@code{emacs-ctlx},@code{vi},@code{vi-move},@code{vi-command}, and@code{vi-insert}.@code{vi} is equivalent to @code{vi-command}; @code{emacs} isequivalent to @code{emacs-standard}.  The default value is @code{emacs}.The value of the @code{editing-mode} variable also affects thedefault keymap.@item mark-directoriesIf set to @samp{on}, completed directory names have a slashappended.  The default is @samp{on}.@item mark-modified-lines@vindex mark-modified-linesThis variable, when set to @samp{on}, causes Readline to display anasterisk (@samp{*}) at the start of history lines which have been modified.This variable is @samp{off} by default.@item mark-symlinked-directories@vindex mark-symlinked-directoriesIf set to @samp{on}, completed names which are symbolic linksto directories have a slash appended (subject to the value of@code{mark-directories}).The default is @samp{off}.@item match-hidden-files@vindex match-hidden-filesThis variable, when set to @samp{on}, causes Readline to match files whosenames begin with a @samp{.} (hidden files) when performing filenamecompletion, unless the leading @samp{.} issupplied by the user in the filename to be completed.This variable is @samp{on} by default.@item output-meta@vindex output-metaIf set to @samp{on}, Readline will display characters with theeighth bit set directly rather than as a meta-prefixed escapesequence.  The default is @samp{off}.@item page-completions@vindex page-completionsIf set to @samp{on}, Readline uses an internal @code{more}-like pagerto display a screenful of possible completions at a time.This variable is @samp{on} by default.@item print-completions-horizontallyIf set to @samp{on}, Readline will display completions with matchessorted horizontally in alphabetical order, rather than down the screen.The default is @samp{off}.@item show-all-if-ambiguous@vindex show-all-if-ambiguousThis alters the default behavior of the completion functions.  Ifset to @samp{on}, words which have more than one possible completion cause thematches to be listed immediately instead of ringing the bell.The default value is @samp{off}.@item visible-stats@vindex visible-statsIf set to @samp{on}, a character denoting a file's typeis appended to the filename when listing possiblecompletions.  The default is @samp{off}.@end table@item Key BindingsThe syntax for controlling key bindings in the init file issimple.  First you need to find the name of the command that youwant to change.  The following sections contain tables of the commandname, the default keybinding, if any, and a short description of whatthe command does.Once you know the name of the command, simply place on a linein the init file the name of the keyyou wish to bind the command to, a colon, and then the name of thecommand.  The name of the keycan be expressed in different ways, depending on what you find mostcomfortable.In addition to command names, readline allows keys to be boundto a string that is inserted when the key is pressed (a @var{macro}).@ifset BashFeaturesThe @w{@code{bind -p}} command displays Readline function names andbindings in a format that can put directly into an initialization file.@xref{Bash Builtins}.@end ifset@table @asis@item @w{@var{keyname}: @var{function-name} or @var{macro}}@var{keyname} is the name of a key spelled out in English.  For example:@exampleControl-u: universal-argumentMeta-Rubout: backward-kill-wordControl-o: "> output"@end exampleIn the above example, @kbd{C-u} is bound to the function@code{universal-argument},@kbd{M-DEL} is bound to the function @code{backward-kill-word}, and@kbd{C-o} is bound to run the macroexpressed on the right hand side (that is, to insert the text@samp{> output} into the line).A number of symbolic character names are recognized whileprocessing this key binding syntax:@var{DEL},@var{ESC},@var{ESCAPE},@var{LFD},@var{NEWLINE},@var{RET},@var{RETURN},@var{RUBOUT},@var{SPACE},@var{SPC},and@var{TAB}.@item @w{"@var{keyseq}": @var{function-name} or @var{macro}}@var{keyseq} differs from @var{keyname} above in that stringsdenoting an entire key sequence can be specified, by placingthe key sequence in double quotes.  Some @sc{gnu} Emacs style keyescapes can be used, as in the following example, but thespecial character names are not recognized.@example"\C-u": universal-argument"\C-x\C-r": re-read-init-file"\e[11~": "Function Key 1"@end exampleIn the above example, @kbd{C-u} is again bound to the function@code{universal-argument} (just as it was in the first example),@samp{@kbd{C-x} @kbd{C-r}} is bound to the function @code{re-read-init-file},and @samp{@key{ESC} @key{[} @key{1} @key{1} @key{~}} is bound to insertthe text @samp{Function Key 1}.@end tableThe following @sc{gnu} Emacs style escape sequences are available whenspecifying key sequences:@table @code@item @kbd{\C-}control prefix@item @kbd{\M-}meta prefix@item @kbd{\e}an escape character@item @kbd{\\}backslash@item @kbd{\"}@key{"}, a double quotation mark@item @kbd{\'}@key{'}, a single quote or apostrophe@end tableIn addition to the @sc{gnu} Emacs style escape sequences, a secondset of backslash escapes is available:@table @code@item \aalert (bell)@item \bbackspace@item \ddelete@item \fform feed@item \nnewline@item \rcarriage return@item \thorizontal tab@item \vvertical tab@item \@var{nnn}the eight-bit character whose value is the octal value @var{nnn}(one to three digits)@item \x@var{HH}the eight-bit character whose value is the hexadecimal value @var{HH}(one or two hex digits)@end tableWhen entering the text of a macro, single or double quotes mustbe used to indicate a macro definition.Unquoted text is assumed to be a function name.In the macro body, the backslash escapes described above are expanded.Backslash will quote any other character in the macro text,including @samp{"} and @samp{'}.For example, the following binding will make @samp{@kbd{C-x} \}insert a single @samp{\} into the line:@example"\C-x\\": "\\"@end example@end table@node Conditional Init Constructs@subsection Conditional Init ConstructsReadline implements a facility similar in spirit to the conditionalcompilation features of the C preprocessor which allows keybindings and variable settings to be performed as the resultof tests.  There are four parser directives used.@table @code@item $ifThe @code{$if} construct allows bindings to be made based on theediting mode, the terminal being used, or the application usingReadline.  The text of the test extends to the end of the line;no characters are required to isolate it.@table @code@item modeThe @code{mode=} form of the @code{$if} directive is used to testwhether Readline is in @code{emacs} or @code{vi} mode.This may be used in conjunctionwith the @samp{set keymap} command, for instance, to set bindings inthe @code{emacs-standard} and @code{emacs-ctlx} keymaps only ifReadline is starting out in @code{emacs} mode.

⌨️ 快捷键说明

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