The
file defines various settings to be used by the
library.
The format of each line is:
is one of the
builtin commands.
Refer to
for more information.
is the program name string that a program defines when it calls
to set up
which is usually
will be executed for any program which matches
may also be a
style
regular expression, in which case
will be executed for any program that matches the regular expression.
If
is absent,
is executed for all programs.
BUILTIN COMMANDS
The
library has some builtin commands, which affect the way
that the line editing and history functions operate.
These are based on similar named builtins present in the
shell.
The following builtin commands are available:
Without options, list all bound keys, and the editor command to which
each is bound.
If
is supplied, show the bindings for
If
is supplied, bind
to
Options include:
Bind all keys to the standard GNU Emacs-like bindings.
Bind all keys to the standard
bindings.
List or change key bindings in the
mode alternate (command mode) key map.
is interpreted as a symbolic arrow key name, which may be one of
or
List all editor commands and a short description of each.
Remove a key's binding.
is taken as a literal string and treated as terminal input when
is typed.
Bound keys in
are themselves reinterpreted, and this continues for ten levels of
interpretation.
may be one of the commands documented in
below, or another key.
and
can contain control characters of the form
e.g.
and the following backslashed escape sequences:
Bell
Backspace
Escape
Formfeed
Newline
Carriage return
Horizontal tab
Vertical tab
The ASCII character corresponding to the octal number
nullifies the special meaning of the following character,
if it has any, notably
and
Exercise terminal capabilities given in
If
is
the value of that capability is printed, with
or
indicating that the terminal does or does not have that capability.
returns an empty string for non-existent capabilities, rather than
causing an error.
causes messages to be verbose.
Enable or disable the
functionality in a program.
The
command lists all entries in the history.
The
command sets the history size to
entries.
The
command controls if history should keep duplicate entries.
If
is non zero, only keep unique history entries.
If
is zero, then keep all entries (the default).
List the values of all the terminal capabilities (see
Set the terminal capability
to
as defined in
No sanity checking is done.
Control which tty modes that
won't allow the user to change.
or
tells
to act on the
or
set of tty modes respectively; defaulting to
Without other arguments,
lists the modes in the chosen set which are fixed on
or off
lists all tty modes in the chosen set regardless of the setting.
With
or
fixes
on or off or removes control of
in the chosen set.
can also be used to set tty characters to particular values using
If
is empty
then the character is set to
EDITOR COMMANDS
The following editor commands are available for use in key bindings:
Vi paste previous deletion to the right of the cursor.
Vi paste previous deletion to the left of the cursor.
Vi move to the previous space delimited word.
Vi move to the previous word.
Vi move to the next space delimited word.
Vi move to the next word.
Vi change case of character under the cursor and advance one character.
Vi change prefix command.
Vi enter insert mode at the beginning of line.
Vi replace character under the cursor with the next character typed.
Vi enter replace mode.
Vi replace character under the cursor and enter insert mode.
Vi substitute entire line.
Vi change to end of line.
Vi enter insert mode.
Vi enter insert mode after the cursor.
Vi enter insert mode at end of line.
Vi delete prefix command.
Vi move to the end of the current space delimited word.
Vi move to the end of the current word.
Vi undo last change.
Vi enter command mode (use alternative key bindings).
Vi move to the beginning of line.
Vi move to previous character (backspace).
Vi list choices for completion or indicate end of file if empty line.
Vi cut from beginning of line to cursor.
Vi search history previous.
Vi search history next.
Vi repeat current search in the same search direction.
Vi repeat current search in the opposite search direction.
Vi move to the character specified next.
Vi move to the character specified previous.
Vi move up to the character specified next.
Vi move up to the character specified previous.
Vi repeat current character search in the same search direction.
Vi repeat current character search in the opposite search direction.
Delete character under cursor or list completions if at end of line.
Cut from cursor to end of current word.
Paste cut buffer at cursor position.
Cut the entire line and save in cut buffer.
Cut area between mark and cursor and save in cut buffer.
Copy area between mark and cursor to cut buffer.
Exchange the two characters before the cursor.
Move next to end of current word.
Uppercase the characters from cursor to end of current word.
Capitalize the characters from cursor to end of current word.
Lowercase the characters from cursor to end of current word.
Set the mark at cursor.
Exchange the cursor and mark.
Universal argument (argument times 4).
Add 8th bit to next character typed.
Switch from insert to overwrite mode or vice versa.
Copy current word to cursor.
Emacs incremental next search.
Emacs incremental reverse search.
Indicate end of file.
Add character to the line.
Delete from beginning of current word to cursor.
Delete character under cursor.
Cut to the end of line.
Move cursor to the end of line.
Move cursor to the beginning of line.
Exchange the character to the left of the cursor with the one under it.
Move to the right one character.
Move to the beginning of the current word.
Move to the left one character.
Add the next character typed verbatim.
Adds to argument or enters a digit.
Digit that starts argument.
Indicates unbound character.
Tty interrupt character.
Tty delayed suspend character.
Tty flush output characters.
Tty quit character.
Tty suspend character.
Tty disallow output characters.
Tty allow output characters.
Execute command.
Delete the character to the left of the cursor.
Clear screen leaving current line at the top.
Redisplay everything.
Erase current line and start from scratch.
First character in a bound sequence.
Move to the previous history line.
Move to the next history line.
Search previous in history for a line matching the current.
Search next in history for a line matching the current.
Move up one line.
Move down one line.
Editline extended command.
SEE ALSO
AUTHORS
The
library was written by Christos Zoulas,
and this manual was written by Luke Mewburn,
with some sections inspired by