"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "libedit/editrc.5" between
tnftp-20151004.tar.gz and tnftp-20200705.tar.gz

About: tnftp is an enhanced ftp client (prior name "lukemftp").

editrc.5  (tnftp-20151004):editrc.5  (tnftp-20200705)
skipping to change at line 13 skipping to change at line 13
NAME NAME
editrc — configuration file for editline library editrc — configuration file for editline library
SYNOPSIS SYNOPSIS
editrc editrc
DESCRIPTION DESCRIPTION
The editrc file defines various settings to be used by the editline(3) libr ary. The editrc file defines various settings to be used by the editline(3) libr ary.
The format of each line is: The format of each line is:
[prog:]command [arg [...]]
[prog:]command [arg ...]
command is one of the editline(3) builtin commands. Refer to BUILTIN COMMA NDS for more information. command is one of the editline(3) builtin commands. Refer to BUILTIN COMMA NDS for more information.
prog is the program name string that a program defines when it calls el_ini t(3) to set up editline(3), prog is the program name string that a program defines when it calls el_ini t(3) to set up editline(3),
which is usually argv[0]. command will be executed for any program which m atches prog. which is usually argv[0]. command will be executed for any program which m atches prog.
prog may also be a regex(3) style regular expression, in which case command will be executed for any pro- prog may also be a regex(3) style regular expression, in which case command will be executed for any pro-
gram that matches the regular expression. gram that matches the regular expression.
If prog is absent, command is executed for all programs. If prog is absent, command is executed for all programs.
BUILTIN COMMANDS BUILTIN COMMANDS
The editline library has some builtin commands, which affect the way that t he line editing and history The editline library has some builtin commands, which affect the way that t he line editing and history
functions operate. These are based on similar named builtins present in th e tcsh(1) shell. functions operate. These are based on similar named builtins present in th e tcsh(1) shell.
The following builtin commands are available: The following builtin commands are available:
bind [-a] [-e] [-k] [-l] [-r] [-s] [-v] [key [command]] bind [-aeklrsv] [key [command]]
Without options, list all bound keys, and the editor command to which Without options and arguments, list all bound keys and macros, and th
each is bound. If key is sup- e editor command or input
plied, show the bindings for key. If key command is supplied, bind c string to which each one is bound. If only key is supplied, show the
ommand to key. Options binding for that key or macro.
include: If key command is supplied, bind the editor command to that key or ma
cro.
-e Bind all keys to the standard GNU Emacs-like bindings.
-v Bind all keys to the standard vi(1)-like bindings. The options are as follows:
-a List or change key bindings in the vi(1) mode alternate (comman d mode) key map. -a List or change key bindings in the vi(1) mode alternate (comman d mode) key map.
-e Bind all keys to the standard GNU Emacs-like bindings.
-k key is interpreted as a symbolic arrow key name, which may be o ne of ‘up’, ‘down’, ‘left’ or -k key is interpreted as a symbolic arrow key name, which may be o ne of ‘up’, ‘down’, ‘left’ or
‘right’. ‘right’.
-l List all editor commands and a short description of each. -l List all editor commands and a short description of each.
-r Remove a key's binding. -r Remove the binding of the key or macro key.
-s command is taken as a literal string and treated as terminal in -s Define a keyboard macro rather than a key binding or command ma
put when key is typed. Bound cro: command is taken as a lit-
keys in command are themselves reinterpreted, and this continue eral string and appended to the input queue whenever key is typ
s for ten levels of interpreta- ed. Bound keys and macros in
tion. command are themselves reinterpreted, and this continues for te
n levels of interpretation.
command may be one of the commands documented in EDITOR COMMANDS belo w, or another key. -v Bind all keys to the standard vi(1)-like bindings.
key and command can contain control characters of the form ‘^characte The editline(7) manual documents all editor commands and contains mor
r’ (e.g. ‘^A’), and the fol- e information about macros and
lowing backslashed escape sequences: the input queue.
key and command can contain control characters of the form ‘^characte
r’ (e.g. ‘^A’), and the follow-
ing backslashed escape sequences:
\a Bell \a Bell
\b Backspace \b Backspace
\e Escape \e Escape
\f Formfeed \f Formfeed
\n Newline \n Newline
\r Carriage return \r Carriage return
\t Horizontal tab \t Horizontal tab
\v Vertical tab \v Vertical tab
\nnn The ASCII character corresponding to the octal number nnn . \nnn The ASCII character corresponding to the octal number nnn .
‘\’ nullifies the special meaning of the following character, if it h as any, notably ‘\’ and ‘^’. ‘\’ nullifies the special meaning of the following character, if it h as any, notably ‘\’ and ‘^’.
echotc [-sv] arg ... echotc [-sv] arg ...
Exercise terminal capabilities given in arg .... If arg is ‘baud’, ‘ Exercise terminal capabilities given in arg .... If arg is ‘baud’, ‘
cols’, ‘lines’, ‘rows’, ‘meta cols’, ‘lines’, ‘rows’, ‘meta’,
or’ ‘tabs’, the value of that capability is printed, with “yes” or “n or ‘tabs’, the value of that capability is printed, with “yes” or “no
o” indicating that the terminal indicating that the terminal
does or does not have that capability. does or does not have that capability.
-s returns an empty string for non-existent capabilities, rather than causing an error. -v causes -s returns an empty string for non-existent capabilities, rather than causing an error. -v causes
messages to be verbose. messages to be verbose.
edit [on | off] edit [on | off]
Enable or disable the editline functionality in a program. Enable or disable the editline functionality in a program.
history list | size n | unique n history list | size n | unique n
The list command lists all entries in the history. The size command sets the history size to n The list 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 duplicat e entries. If n is non zero, entries. The unique command controls if history should keep duplicat e entries. If n is non zero,
only keep unique history entries. If n is zero, then keep all entrie s (the default). only keep unique history entries. If n is zero, then keep all entrie s (the default).
telltc
List the values of all the terminal capabilities (see termcap(5)).
settc cap val settc cap val
Set the terminal capability cap to val, as defined in termcap(5). No sanity checking is done. Set the terminal capability cap to val, as defined in termcap(5). No sanity checking is done.
setty [-a] [-d] [-q] [-x] [+mode] [-mode] [mode] [char=c] setty [-a] [-d] [-q] [-x] [+mode] [-mode] [mode] [char=c]
Control which tty modes that editrc won't allow the user to change. -d, -q or -x tells setty to act Control which tty modes that 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; de faulting to -x. on the ‘edit’, ‘quote’ or ‘execute’ set of tty modes respectively; de faulting to -x.
Without other arguments, setty lists the modes in the chosen set whic h are fixed on (‘+mode’) or off Without other arguments, setty lists the modes in the chosen set whic h are fixed on (‘+mode’) or off
(‘-mode’). -a lists all tty modes in the chosen set regardless of th e setting. With +mode, -mode (‘-mode’). -a lists all tty modes in the chosen set regardless of th e setting. With +mode, -mode
or mode, fixes mode on or off or removes control of mode in the chose n set. or mode, fixes mode on or off or removes control of mode in the chose n set.
Setty can also be used to set tty characters to particular values usi ng char=value. If value is Setty can also be used to set tty characters to particular values usi ng char=value. If value is
empty then the character is set to _POSIX_VDISABLE. empty then the character is set to _POSIX_VDISABLE.
EDITOR COMMANDS telltc
The following editor commands are available for use in key bindings: List the values of all the terminal capabilities (see termcap(5)).
vi-paste-next
Vi paste previous deletion to the right of the cursor.
vi-paste-prev
Vi paste previous deletion to the left of the cursor.
vi-prev-space-word
Vi move to the previous space delimited word.
vi-prev-word
Vi move to the previous word.
vi-next-space-word
Vi move to the next space delimited word.
vi-next-word
Vi move to the next word.
vi-change-case
Vi change case of character under the cursor and advance one characte
r.
vi-change-meta
Vi change prefix command.
vi-insert-at-bol
Vi enter insert mode at the beginning of line.
vi-replace-char
Vi replace character under the cursor with the next character typed.
vi-replace-mode
Vi enter replace mode.
vi-substitute-char
Vi replace character under the cursor and enter insert mode.
vi-substitute-line
Vi substitute entire line.
vi-change-to-eol
Vi change to end of line.
vi-insert
Vi enter insert mode.
vi-add
Vi enter insert mode after the cursor.
vi-add-at-eol
Vi enter insert mode at end of line.
vi-delete-meta
Vi delete prefix command.
vi-end-word
Vi move to the end of the current space delimited word.
vi-to-end-word
Vi move to the end of the current word.
vi-undo
Vi undo last change.
vi-command-mode
Vi enter command mode (use alternative key bindings).
vi-zero
Vi move to the beginning of line.
vi-delete-prev-char
Vi move to previous character (backspace).
vi-list-or-eof
Vi list choices for completion or indicate end of file if empty line.
vi-kill-line-prev
Vi cut from beginning of line to cursor.
vi-search-prev
Vi search history previous.
vi-search-next
Vi search history next.
vi-repeat-search-next
Vi repeat current search in the same search direction.
vi-repeat-search-prev
Vi repeat current search in the opposite search direction.
vi-next-char
Vi move to the character specified next.
vi-prev-char
Vi move to the character specified previous.
vi-to-next-char
Vi move up to the character specified next.
vi-to-prev-char
Vi move up to the character specified previous.
vi-repeat-next-char
Vi repeat current character search in the same search direction.
vi-repeat-prev-char
Vi repeat current character search in the opposite search direction.
em-delete-or-list
Delete character under cursor or list completions if at end of line.
em-delete-next-word
Cut from cursor to end of current word.
em-yank
Paste cut buffer at cursor position.
em-kill-line
Cut the entire line and save in cut buffer.
em-kill-region
Cut area between mark and cursor and save in cut buffer.
em-copy-region
Copy area between mark and cursor to cut buffer.
em-gosmacs-transpose
Exchange the two characters before the cursor.
em-next-word
Move next to end of current word.
em-upper-case
Uppercase the characters from cursor to end of current word.
em-capitol-case
Capitalize the characters from cursor to end of current word.
em-lower-case
Lowercase the characters from cursor to end of current word.
em-set-mark
Set the mark at cursor.
em-exchange-mark
Exchange the cursor and mark.
em-universal-argument
Universal argument (argument times 4).
em-meta-next
Add 8th bit to next character typed.
em-toggle-overwrite
Switch from insert to overwrite mode or vice versa.
em-copy-prev-word
Copy current word to cursor.
em-inc-search-next
Emacs incremental next search.
em-inc-search-prev
Emacs incremental reverse search.
ed-end-of-file
Indicate end of file.
ed-insert
Add character to the line.
ed-delete-prev-word
Delete from beginning of current word to cursor.
ed-delete-next-char
Delete character under cursor.
ed-kill-line
Cut to the end of line.
ed-move-to-end
Move cursor to the end of line.
ed-move-to-beg
Move cursor to the beginning of line.
ed-transpose-chars
Exchange the character to the left of the cursor with the one under i
t.
ed-next-char
Move to the right one character.
ed-prev-word
Move to the beginning of the current word.
ed-prev-char
Move to the left one character.
ed-quoted-insert
Add the next character typed verbatim.
ed-digit
Adds to argument or enters a digit.
ed-argument-digit
Digit that starts argument.
ed-unassigned
Indicates unbound character.
ed-tty-sigint
Tty interrupt character.
ed-tty-dsusp
Tty delayed suspend character.
ed-tty-flush-output
Tty flush output characters.
ed-tty-sigquit
Tty quit character.
ed-tty-sigtstp
Tty suspend character.
ed-tty-stop-output
Tty disallow output characters.
ed-tty-start-output
Tty allow output characters.
ed-newline
Execute command.
ed-delete-prev-char
Delete the character to the left of the cursor.
ed-clear-screen
Clear screen leaving current line at the top.
ed-redisplay
Redisplay everything.
ed-start-over
Erase current line and start from scratch.
ed-sequence-lead-in
First character in a bound sequence.
ed-prev-history
Move to the previous history line.
ed-next-history
Move to the next history line.
ed-search-prev-history
Search previous in history for a line matching the current.
ed-search-next-history
Search next in history for a line matching the current.
ed-prev-line
Move up one line.
ed-next-line ENVIRONMENT
Move down one line. EDITRC Names the default configuration file for the editline(3) libr
ary.
ed-command FILES
Editline extended command. ~/.editrc Last resort, if no other file is specified, user configuratio
n file for the editline(3)
library.
SEE ALSO SEE ALSO
editline(3), regex(3), termcap(5) editline(3), regex(3), termcap(5), editline(7)
AUTHORS AUTHORS
The editline library was written by Christos Zoulas, and this manual was wr itten by Luke Mewburn, with The editline library was written by Christos Zoulas, and this manual was wr itten by Luke Mewburn, with
some sections inspired by tcsh(1). some sections inspired by tcsh(1).
BSD October 18, 2003 BSD BSD May 22, 2016 BSD
 End of changes. 15 change blocks. 
300 lines changed or deleted 41 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)