EDITRC(5edit) | 5edit | EDITRC(5edit) |
editrc
—
configuration file for editline library
editrc |
The editrc
file defines various settings
to be used by the editline(3edit) library.
The format of each line is:
:
]command
[arg ...]command is one of the editline(3edit) builtin commands. Refer to BUILTIN COMMANDS for more information.
prog is the program name string that a
program defines when it calls el_init(3) to set up
editline(3edit), which is usually
argv[0]
.
command will be executed for any program which matches
prog.
prog may also be a regex(3) style regular expression, in which case command will be executed for any program that matches the regular expression.
If prog is absent, command is executed for all programs.
The editline
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
tcsh(1) shell.
The following builtin commands are available:
bind
[-aeklrsv
] [key
[command]]The options are as follows:
-a
-e
-k
up
,
down
, left
or
right
.-l
-r
-s
-v
The editline(7edit) manual documents all editor commands and contains more information about macros and the input queue.
key and command
can contain control characters of the form
‘^
character’
(e.g. ‘^A
’), and the following
backslashed escape sequences:
‘\
’ nullifies the
special meaning of the following character, if it has any, notably
‘\
’ and
‘^
’.
echotc
[-sv
] arg
...baud
’,
‘cols
’,
‘lines
’,
‘rows
’,
‘meta
’, or
‘tabs
’, the value of that capability
is printed, with “yes” or “no” indicating that
the terminal does or does not have that capability.
-s
returns an empty string for
non-existent capabilities, rather than causing an error.
-v
causes messages to be verbose.
edit
[on
| off
]editline
functionality in a
program.history
list
|
size
n |
unique
nlist
’ command lists all entries
in the history. The ‘size
’ command
sets the history size to n entries. The
‘unique
’ command controls if history
should keep duplicate entries. If n is non zero,
only keep unique history entries. If n is zero, then
keep all entries (the default).settc
cap valsetty
[-a
] [-d
]
[-q
] [-x
]
[+
mode]
[-
mode]
[mode]
[char=
c]editrc
won't allow
the user to change. -d
, -q
or -x
tells setty
to act
on the ‘edit’, ‘quote’ or
‘execute’ set of tty modes respectively; defaulting to
-x
.
Without other arguments, setty
lists
the modes in the chosen set which are fixed on
(+
mode) or off
(-
mode).
-a
lists all tty modes in the chosen set
regardless of the setting. With
+
mode,
-
mode or
mode, fixes mode on or off
or removes control of mode in the chosen set.
Setty
can also be used to set tty
characters to particular values using
char=
value.
If value is empty then the character is set to
_POSIX_VDISABLE
.
telltc
EDITRC
The editline
library was written by
Christos Zoulas, and this manual was written by
Luke Mewburn, with some sections inspired by
tcsh(1).
May 22, 2016 | Debian |