Manual Pages for UNIX Darwin command on man editrc
MyWebUniversity

Manual Pages for UNIX Darwin command on man editrc

EDITRC(5) BSD File Formats Manual EDITRC(5)

NAME

eeddiittrrcc - configuration file for editline library

SYNOPSIS

eeddiittrrcc

DESCRIPTION

The eeddiittrrcc file defines various settings to be used by the editline(3) library. The format of each line is: [prog:]command [arg [...]] command is one of the editline(3) builtin commands. Refer to BUILTIN COMMANDS for more information. prog is the program name string that a program defines when it calls elinit(3) to set up editline(3), 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 expres-

sion. If prog is absent, command is executed for all programs. BBUUIILLTTIINN CCOOMMMMAANNDDSS The eeddiittlliinnee library has some builtin commands, which affect the way that

the line editing and history functions operate. These are based on simi-

lar named builtins present in the tcsh(1) shell. The following builtin commands are available:

bbiinndd [-aa] [-ee] [-kk] [-ll] [-rr] [-ss] [-vv] [key [command]]

Without options, list all bound keys, and the editor command to which each is bound. If key is supplied, show the bindings for key. If key command is supplied, bind command to key. Options include:

-ee Bind all keys to the standard GNU Emacs-like bindings.

-vv Bind all keys to the standard vi(1)-like bindings.

-aa List or change key bindings in the vi(1) mode alternate (com-

mand mode) key map.

-kk key is interpreted as a symbolic arrow key name, which may be

one of `up', `down', `left' or `right'.

-ll List all editor commands and a short description of each.

-rr Remove a key's binding.

-ss command is taken as a literal string and treated as terminal

input when key is typed. Bound keys in command are them-

selves reinterpreted, and this continues for ten levels of interpretation. command may be one of the commands documented in EDITOR COMMANDS below, or another key. key and command can contain control characters of the form `^character' (e.g. `^A'), and the following backslashed escape sequences: \\aa Bell \\bb Backspace \\ee Escape \\ff Formfeed \\nn Newline \\rr Carriage return \\tt Horizontal tab \\vv Vertical tab \\nnn The ASCII character corresponding to the octal number nnn. `\' nullifies the special meaning of the following character, if it has any, notably `\' and `^'.

eecchhoottcc [-ssvv] arg ...

Exercise terminal capabilities given in arg .... If arg is `baud',

`cols', `lines', `rows', `meta or' `tabs', the value of that capa-

bility is printed, with ``yes'' or ``no'' indicating that the ter-

minal does or does not have that capability.

-ss returns an empty string for non-existent capabilities, rather

than causing an error. -vv causes messages to be verbose.

eeddiitt [on | off] Enable or disable the eeddiittlliinnee functionality in a program. hhiissttoorryy list | size n | unique n

The list command lists all entries in the history. The size com-

mand sets the history size to n entries. The unique command con-

trols 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). tteellllttcc List the values of all the terminal capabilities (see termcap(5)). sseettttcc cap val Set the terminal capability cap to val, as defined in termcap(5). No sanity checking is done.

sseettttyy [-aa] [-dd] [-qq] [-xx] [+mode] [-mode] [mode] [char=c]

Control which tty modes that eeddiittrrcc won't allow the user to change.

-dd, -qq or -xx tells sseettttyy to act on the `edit', `quote' or `execute'

set of tty modes respectively; defaulting to -xx.

Without other arguments, sseettttyy lists the modes in the chosen set

which are fixed on (`+mode') or off (`-mode'). -aa 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. SSeettttyy can also be used to set tty characters to particular values using char=value. If value is empty then the character is set to POSIXVDISABLE. EEDDIITTOORR CCOOMMMMAANNDDSS The following editor commands are available for use in key bindings:

vvii-ppaassttee-nneexxtt

Vi paste previous deletion to the right of the cursor.

vvii-ppaassttee-pprreevv

Vi paste previous deletion to the left of the cursor.

vvii-pprreevv-ssppaaccee-wwoorrdd

Vi move to the previous space delimited word.

vvii-pprreevv-wwoorrdd

Vi move to the previous word.

vvii-nneexxtt-ssppaaccee-wwoorrdd

Vi move to the next space delimited word.

vvii-nneexxtt-wwoorrdd

Vi move to the next word.

vvii-cchhaannggee-ccaassee

Vi change case of character under the cursor and advance one char-

acter.

vvii-cchhaannggee-mmeettaa

Vi change prefix command.

vvii-iinnsseerrtt-aatt-bbooll

Vi enter insert mode at the beginning of line.

vvii-rreeppllaaccee-cchhaarr

Vi replace character under the cursor with the next character typed.

vvii-rreeppllaaccee-mmooddee

Vi enter replace mode.

vvii-ssuubbssttiittuuttee-cchhaarr

Vi replace character under the cursor and enter insert mode.

vvii-ssuubbssttiittuuttee-lliinnee

Vi substitute entire line.

vvii-cchhaannggee-ttoo-eeooll

Vi change to end of line.

vvii-iinnsseerrtt

Vi enter insert mode.

vvii-aadddd

Vi enter insert mode after the cursor.

vvii-aadddd-aatt-eeooll

Vi enter insert mode at end of line.

vvii-ddeelleettee-mmeettaa

Vi delete prefix command.

vvii-eenndd-wwoorrdd

Vi move to the end of the current space delimited word.

vvii-ttoo-eenndd-wwoorrdd

Vi move to the end of the current word.

vvii-uunnddoo

Vi undo last change.

vvii-ccoommmmaanndd-mmooddee

Vi enter command mode (use alternative key bindings).

vvii-zzeerroo

Vi move to the beginning of line.

vvii-ddeelleettee-pprreevv-cchhaarr

Vi move to previous character (backspace).

vvii-lliisstt-oorr-eeooff

Vi list choices for completion or indicate end of file if empty line.

vvii-kkiillll-lliinnee-pprreevv

Vi cut from beginning of line to cursor.

vvii-sseeaarrcchh-pprreevv

Vi search history previous.

vvii-sseeaarrcchh-nneexxtt

Vi search history next.

vvii-rreeppeeaatt-sseeaarrcchh-nneexxtt

Vi repeat current search in the same search direction.

vvii-rreeppeeaatt-sseeaarrcchh-pprreevv

Vi repeat current search in the opposite search direction.

vvii-nneexxtt-cchhaarr

Vi move to the character specified next.

vvii-pprreevv-cchhaarr

Vi move to the character specified previous.

vvii-ttoo-nneexxtt-cchhaarr

Vi move up to the character specified next.

vvii-ttoo-pprreevv-cchhaarr

Vi move up to the character specified previous.

vvii-rreeppeeaatt-nneexxtt-cchhaarr

Vi repeat current character search in the same search direction.

vvii-rreeppeeaatt-pprreevv-cchhaarr

Vi repeat current character search in the opposite search direc-

tion.

eemm-ddeelleettee-oorr-lliisstt

Delete character under cursor or list completions if at end of line.

eemm-ddeelleettee-nneexxtt-wwoorrdd

Cut from cursor to end of current word.

eemm-yyaannkk

Paste cut buffer at cursor position.

eemm-kkiillll-lliinnee

Cut the entire line and save in cut buffer.

eemm-kkiillll-rreeggiioonn

Cut area between mark and cursor and save in cut buffer.

eemm-ccooppyy-rreeggiioonn

Copy area between mark and cursor to cut buffer.

eemm-ggoossmmaaccss-ttrraannssppoossee

Exchange the two characters before the cursor.

eemm-nneexxtt-wwoorrdd

Move next to end of current word.

eemm-uuppppeerr-ccaassee

Uppercase the characters from cursor to end of current word.

eemm-ccaappiittooll-ccaassee

Capitalize the characters from cursor to end of current word.

eemm-lloowweerr-ccaassee

Lowercase the characters from cursor to end of current word.

eemm-sseett-mmaarrkk

Set the mark at cursor.

eemm-eexxcchhaannggee-mmaarrkk

Exchange the cursor and mark.

eemm-uunniivveerrssaall-aarrgguummeenntt

Universal argument (argument times 4).

eemm-mmeettaa-nneexxtt

Add 8th bit to next character typed.

eemm-ttooggggllee-oovveerrwwrriittee

Switch from insert to overwrite mode or vice versa.

eemm-ccooppyy-pprreevv-wwoorrdd

Copy current word to cursor.

eemm-iinncc-sseeaarrcchh-nneexxtt

Emacs incremental next search.

eemm-iinncc-sseeaarrcchh-pprreevv

Emacs incremental reverse search.

eedd-eenndd-ooff-ffiillee

Indicate end of file.

eedd-iinnsseerrtt

Add character to the line.

eedd-ddeelleettee-pprreevv-wwoorrdd

Delete from beginning of current word to cursor.

eedd-ddeelleettee-nneexxtt-cchhaarr

Delete character under cursor.

eedd-kkiillll-lliinnee

Cut to the end of line.

eedd-mmoovvee-ttoo-eenndd

Move cursor to the end of line.

eedd-mmoovvee-ttoo-bbeegg

Move cursor to the beginning of line.

eedd-ttrraannssppoossee-cchhaarrss

Exchange the character to the left of the cursor with the one under it.

eedd-nneexxtt-cchhaarr

Move to the right one character.

eedd-pprreevv-wwoorrdd

Move to the beginning of the current word.

eedd-pprreevv-cchhaarr

Move to the left one character.

eedd-qquuootteedd-iinnsseerrtt

Add the next character typed verbatim.

eedd-ddiiggiitt

Adds to argument or enters a digit.

eedd-aarrgguummeenntt-ddiiggiitt

Digit that starts argument.

eedd-uunnaassssiiggnneedd

Indicates unbound character.

eedd-ttttyy-ssiiggiinntt

Tty interrupt character.

eedd-ttttyy-ddssuusspp

Tty delayed suspend character.

eedd-ttttyy-fflluusshh-oouuttppuutt

Tty flush output characters.

eedd-ttttyy-ssiiggqquuiitt

Tty quit character.

eedd-ttttyy-ssiiggttssttpp

Tty suspend character.

eedd-ttttyy-ssttoopp-oouuttppuutt

Tty disallow output characters.

eedd-ttttyy-ssttaarrtt-oouuttppuutt

Tty allow output characters.

eedd-nneewwlliinnee

Execute command.

eedd-ddeelleettee-pprreevv-cchhaarr

Delete the character to the left of the cursor.

eedd-cclleeaarr-ssccrreeeenn

Clear screen leaving current line at the top.

eedd-rreeddiissppllaayy

Redisplay everything.

eedd-ssttaarrtt-oovveerr

Erase current line and start from scratch.

eedd-sseeqquueennccee-lleeaadd-iinn

First character in a bound sequence.

eedd-pprreevv-hhiissttoorryy

Move to the previous history line.

eedd-nneexxtt-hhiissttoorryy

Move to the next history line.

eedd-sseeaarrcchh-pprreevv-hhiissttoorryy

Search previous in history for a line matching the current.

eedd-sseeaarrcchh-nneexxtt-hhiissttoorryy

Search next in history for a line matching the current.

eedd-pprreevv-lliinnee

Move up one line.

eedd-nneexxtt-lliinnee

Move down one line.

eedd-ccoommmmaanndd

Editline extended command.

SEE ALSO

editline(3), regex(3), termcap(5) AUTHORS The eeddiittlliinnee library was written by Christos Zoulas, and this manual was written by Luke Mewburn, with some sections inspired by tcsh(1). BSD October 18, 2003 BSD




Contact us      |      About us      |      Term of use      |       Copyright © 2000-2019 MyWebUniversity.com ™