|
|
In the second form, "keyseq"\fP:\^function-name\fP or macro\fP,
keyseq
differs from
keyname
above in that strings denoting
an entire key sequence may be specified by placing the sequence
within double quotes. Some GNU Emacs style key escapes can be
used, as in the following example.
.sp
"\C-u": universal-argument
"\C-x\C-r": re-read-init-file
"\e[11~": "Function Key 1"
In this example, C-u is again bound to the function .BR universal-argument . "C-x C-r" is bound to the function .BR re-read-init-file , and "ESC [ 1 1 ~" is bound to insert the text .BR "Function Key 1" . The full set of GNU Emacs style escape sequences is
In addition to the GNU Emacs style escape sequences, a second set of backslash escapes is available:
When entering the text of a macro, single or double quotes must be 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 " and '.
Bash allows the current readline key bindings to be displayed or modified with the bind builtin command. The editing mode may be switched during interactive use by using the -o option to the set builtin command (see .SM SHELL BUILTIN COMMANDS below).
Web: http://shell.tjgy.com Email:support@tjgy.com