bindkey built-in command for tcsh: List all bound keys

Format

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

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

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

Description

bindkey specified alone (without options, key, or key command) lists all bound keys and the editor command to which each is bound.

bindkey specified with key (with or without options) lists the editor command to which key is bound.

bindkey specified with key command (with or without options) binds the editor command to key.

Options

–l
Lists all 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-like bindings.
–a
Lists or changes key-bindings in the alternative key map. This is the key map used in vi command mode.
–b
key is interpreted as a control character written ^character (^A) or C-character (C-A), a meta character written M-character (M-A), or an extended prefix key written X-character (X-A).
–k
key is interpreted as a symbolic arrow key name, which can be one of 'down', 'up', 'left' or 'right'.
–r
Removes key's binding. Be careful: bindkey -r does not bind key to self-insert-command, it unbinds key completely.
–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. Bound keys in command are themselves reinterpreted, and this continues for ten levels of interpretation.
– –
Forces a break from option processing, so the next word is taken as key even if it begins with '-'.

Usage notes

  1. key can be a single character or a string. If a command is bound to a string, the first character of the string is bound to sequence-lead-in and the entire string is bound to the command.
  2. Control characters in key can be literal (they can be typed by preceding them with the editor command quoted-insert, normally bound to ^V) or written caret-character style, for example, ^A. Delete is written ^? (caret-question mark). key and command can contain backslashed escape sequences (in the style of System V echo) as follows:
\a
Bell
\b
Backspace
\e
Escape
\f
Form feed
\n
Newline
\r
Carriage return
\t
Horizontal tab
\v
Vertical tab
\nnn
The EBCDIC character corresponding to the octal number nnn

The \ character nullifies the special meaning of the following characters, notably \/ and ^.

Related information

tcsh