Terminal Control

Terminal Control

bindkey

[-l|-d|-e|-v|-u]

bindkey

[-a] [-b] [-k] [-r] [--] key

bindkey

[-a] [-b] [-k] [-c|-s] [--] key command

Without options, the first form lists all bound keys and the editor command to which each is bound, the second form lists the editor command to which each key is bound, and the third form binds the editor command command to key. Options include the following:

Example: To set your key bindings to emulate vi, use

bindkey -v

-l

Lists all editor commands and a short description of each.

-d

Binds all keys to the standard bindings for the default editor.

-e

Binds all keys to the standard GNU Emacs-like bindings.

-v

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

-a

Lists or changes key bindings in the alternative key map. This is the key map used in vi command mode.

-b

Interprets specified character as a control character written ^character (e.g., '^A') or C-character (e.g., 'C-A'), a meta character written M-char_ acter (e.g. 'M-A'), a function key written F- string (e.g., 'F-string'), or an extended prefix key written X-character (e.g., 'X-A').

-k

Interprets key as a symbolic arrow key name, which may be one of 'down', 'up', 'left', or 'right'.

-r

Removes key's binding.

-c

Command is interpreted as a built-in or external command, instead of an editor command.

-s

Command is taken as a literal string and treated as terminal input when key is typed.

--

Forces a break from option processing, so that the next word is taken as key even if it begins with '-'.-u (or any invalid option). Prints a usage message.

settc cap value

Tells the shell to believe that the terminal capability cap has the specified value. No check of the appropriateness of the value entered is performed.

Example: To set the termcap variable to a value of\E, type

settc ce \E

setty [-d|-q|-x] [-a] [[|-]mode]

Controls which tty modes the shell does not allow to change. Without other arguments, setty lists the modes in the chosen set that are fixed on ('mode') or off ('-mode'). The available modes, and thus the display, vary from system to system.

Example:

-d

Acts on the edit tty mode.

-q or

Acts on the quote tty mode.

-x

Acts on the execute tty mode.

-a

Lists all tty modes in the chosen set whether or not they are fixed.

telltc

Lists the value of all terminal capabilities.

Example: To list the values of all terminal capabilities, use

telltc

 



Linux Desk Reference
Linux Desk Reference (2nd Edition)
ISBN: 0130619892
EAN: 2147483647
Year: 2000
Pages: 174
Authors: Scott Hawkins

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net