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

📄 rluser.texinfo

📁 这个是LINUX下的GDB调度工具的源码
💻 TEXINFO
📖 第 1 页 / 共 5 页
字号:
@item termThe @code{term=} form may be used to include terminal-specifickey bindings, perhaps to bind the key sequences output by theterminal's function keys.  The word on the right side of the@samp{=} is tested against both the full name of the terminal andthe portion of the terminal name before the first @samp{-}.  Thisallows @code{sun} to match both @code{sun} and @code{sun-cmd},for instance.@item applicationThe @var{application} construct is used to includeapplication-specific settings.  Each program using the Readlinelibrary sets the @var{application name}, and you can test fora particular value. This could be used to bind key sequences to functions useful fora specific program.  For instance, the following command adds akey sequence that quotes the current or previous word in Bash:@example$if Bash# Quote the current or previous word"\C-xq": "\eb\"\ef\""$endif@end example@end table@item $endifThis command, as seen in the previous example, terminates an@code{$if} command.@item $elseCommands in this branch of the @code{$if} directive are executed ifthe test fails.@item $includeThis directive takes a single filename as an argument and reads commandsand bindings from that file.For example, the following directive reads from @file{/etc/inputrc}:@example$include /etc/inputrc@end example@end table@node Sample Init File@subsection Sample Init FileHere is an example of an @var{inputrc} file.  This illustrates keybinding, variable assignment, and conditional syntax.@example@page# This file controls the behaviour of line input editing for# programs that use the GNU Readline library.  Existing# programs include FTP, Bash, and GDB.## You can re-read the inputrc file with C-x C-r.# Lines beginning with '#' are comments.## First, include any systemwide bindings and variable# assignments from /etc/Inputrc$include /etc/Inputrc## Set various bindings for emacs mode.set editing-mode emacs $if mode=emacsMeta-Control-h:	backward-kill-word	Text after the function name is ignored## Arrow keys in keypad mode##"\M-OD":        backward-char#"\M-OC":        forward-char#"\M-OA":        previous-history#"\M-OB":        next-history## Arrow keys in ANSI mode#"\M-[D":        backward-char"\M-[C":        forward-char"\M-[A":        previous-history"\M-[B":        next-history## Arrow keys in 8 bit keypad mode##"\M-\C-OD":       backward-char#"\M-\C-OC":       forward-char#"\M-\C-OA":       previous-history#"\M-\C-OB":       next-history## Arrow keys in 8 bit ANSI mode##"\M-\C-[D":       backward-char#"\M-\C-[C":       forward-char#"\M-\C-[A":       previous-history#"\M-\C-[B":       next-historyC-q: quoted-insert$endif# An old-style binding.  This happens to be the default.TAB: complete# Macros that are convenient for shell interaction$if Bash# edit the path"\C-xp": "PATH=$@{PATH@}\e\C-e\C-a\ef\C-f"# prepare to type a quoted word --# insert open and close double quotes# and move to just after the open quote"\C-x\"": "\"\"\C-b"# insert a backslash (testing backslash escapes# in sequences and macros)"\C-x\\": "\\"# Quote the current or previous word"\C-xq": "\eb\"\ef\""# Add a binding to refresh the line, which is unbound"\C-xr": redraw-current-line# Edit variable on current line."\M-\C-v": "\C-a\C-k$\C-y\M-\C-e\C-a\C-y="$endif# use a visible bell if one is availableset bell-style visible# don't strip characters to 7 bits when readingset input-meta on# allow iso-latin1 characters to be inserted rather# than converted to prefix-meta sequencesset convert-meta off# display characters with the eighth bit set directly# rather than as meta-prefixed charactersset output-meta on# if there are more than 150 possible completions for# a word, ask the user if he wants to see all of themset completion-query-items 150# For FTP$if Ftp"\C-xg": "get \M-?""\C-xt": "put \M-?""\M-.": yank-last-arg$endif@end example@node Bindable Readline Commands@section Bindable Readline Commands@menu* Commands For Moving::		Moving about the line.* Commands For History::	Getting at previous lines.* Commands For Text::		Commands for changing text.* Commands For Killing::	Commands for killing and yanking.* Numeric Arguments::		Specifying numeric arguments, repeat counts.* Commands For Completion::	Getting Readline to do the typing for you.* Keyboard Macros::		Saving and re-executing typed characters* Miscellaneous Commands::	Other miscellaneous commands.@end menuThis section describes Readline commands that may be bound to keysequences.@ifset BashFeaturesYou can list your key bindings by executing@w{@code{bind -P}} or, for a more terse format, suitable for an@var{inputrc} file, @w{@code{bind -p}}.  (@xref{Bash Builtins}.)@end ifsetCommand names without an accompanying key sequence are unbound by default.In the following descriptions, @dfn{point} refers to the current cursorposition, and @dfn{mark} refers to a cursor position saved by the@code{set-mark} command.The text between the point and mark is referred to as the @dfn{region}.@node Commands For Moving@subsection Commands For Moving@ftable @code@item beginning-of-line (C-a)Move to the start of the current line.@item end-of-line (C-e)Move to the end of the line.@item forward-char (C-f)Move forward a character.@item backward-char (C-b)Move back a character.@item forward-word (M-f)Move forward to the end of the next word.  Words are composed ofletters and digits.@item backward-word (M-b)Move back to the start of the current or previous word.  Words arecomposed of letters and digits.@item clear-screen (C-l)Clear the screen and redraw the current line,leaving the current line at the top of the screen.@item redraw-current-line ()Refresh the current line.  By default, this is unbound.@end ftable@node Commands For History@subsection Commands For Manipulating The History@ftable @code@item accept-line (Newline or Return)@ifset BashFeaturesAccept the line regardless of where the cursor is.If this line isnon-empty, add it to the history list according to the setting ofthe @env{HISTCONTROL} and @env{HISTIGNORE} variables.If this line is a modified history line, then restore the history lineto its original state.@end ifset@ifclear BashFeaturesAccept the line regardless of where the cursor is.If this line isnon-empty, it may be added to the history list for future recall with@code{add_history()}.If this line is a modified history line, the history line is restoredto its original state.@end ifclear@item previous-history (C-p)Move `back' through the history list, fetching the previous command.@item next-history (C-n)Move `forward' through the history list, fetching the next command.@item beginning-of-history (M-<)Move to the first line in the history.@item end-of-history (M->)Move to the end of the input history, i.e., the line currentlybeing entered.@item reverse-search-history (C-r)Search backward starting at the current line and moving `up' throughthe history as necessary.  This is an incremental search.@item forward-search-history (C-s)Search forward starting at the current line and moving `down' throughthe the history as necessary.  This is an incremental search.@item non-incremental-reverse-search-history (M-p)Search backward starting at the current line and moving `up'through the history as necessary using a non-incremental searchfor a string supplied by the user.@item non-incremental-forward-search-history (M-n)Search forward starting at the current line and moving `down'through the the history as necessary using a non-incremental searchfor a string supplied by the user.@item history-search-forward ()Search forward through the history for the string of charactersbetween the start of the current line and the point.This is a non-incremental search.By default, this command is unbound.@item history-search-backward ()Search backward through the history for the string of charactersbetween the start of the current line and the point.  Thisis a non-incremental search.  By default, this command is unbound.@item yank-nth-arg (M-C-y)Insert the first argument to the previous command (usuallythe second word on the previous line) at point.With an argument @var{n},insert the @var{n}th word from the previous command (the wordsin the previous command begin with word 0).  A negative argumentinserts the @var{n}th word from the end of the previous command.@item yank-last-arg (M-. or M-_)Insert last argument to the previous command (the last word of theprevious history entry).  With anargument, behave exactly like @code{yank-nth-arg}.Successive calls to @code{yank-last-arg} move back through the historylist, inserting the last argument of each line in turn.@end ftable@node Commands For Text@subsection Commands For Changing Text@ftable @code@item delete-char (C-d)Delete the character at point.  If point is at thebeginning of the line, there are no characters in the line, andthe last character typed was not bound to @code{delete-char}, thenreturn @sc{eof}.@item backward-delete-char (Rubout)Delete the character behind the cursor.  A numeric argument meansto kill the characters instead of deleting them.@item forward-backward-delete-char ()Delete the character under the cursor, unless the cursor is at theend of the line, in which case the character behind the cursor isdeleted.  By default, this is not bound to a key.@item quoted-insert (C-q or C-v)Add the next character typed to the line verbatim.  This ishow to insert key sequences like @kbd{C-q}, for example.@ifclear BashFeatures@item tab-insert (M-@key{TAB})Insert a tab character.@end ifclear@item self-insert (a, b, A, 1, !, @dots{})Insert yourself.@item transpose-chars (C-t)Drag the character before the cursor forward overthe character at the cursor, moving thecursor forward as well.  If the insertion pointis at the end of the line, then thistransposes the last two characters of the line.Negative arguments have no effect.@item transpose-words (M-t)Drag the word before point past the word after point,moving point past that word as well.If the insertion point is at the end of the line, this transposesthe last two words on the line.@item upcase-word (M-u)Uppercase the current (or following) word.  With a negative argument,uppercase the previous word, but do not move the cursor.@item downcase-word (M-l)Lowercase the current (or following) word.  With a negative argument,lowercase the previous word, but do not move the cursor.@item capitalize-word (M-c)Capitalize the current (or following) word.  With a negative argument,capitalize the previous word, but do not move the cursor.@item overwrite-mode ()Toggle overwrite mode.  With an explicit positive numeric argument,switches to overwrite mode.  With an explicit non-positive numericargument, switches to insert mode.  This command affects only@code{emacs} mode; @code{vi} mode does overwrite differently.Each call to @code{readline()} starts in insert mode.In overwrite mode, characters bound to @code{self-insert} replacethe text at point rather than pushing the text to the right.Characters bound to @code{backward-delete-char} replace the character

⌨️ 快捷键说明

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