The following tables list all of the keys that can be redefined. The tables list the key's full name, its two-character name (called the key code), and the corresponding key used on a Windows keyboard (not all keys listed can be redefined under Windows; see Note below). The key code is used in the terminal database file on UNIX and VMS systems to identify the corresponding key-sequence.
(terminal db file)
|Cntrl-A - Cntrl-Z||^A - ^Z||Ctl A-Z|
|F1 - F10||k1 - k0||F1 - F10|
|F11 - F20||K1 - K0||Shft F1 - F10|
keys 1 - 10
(1-6 on Windows)
U1 - U0
(U1-6 on Windows)
|F11-F12; Shft-F11-F12; Ctl-F11-F12|
|A1 - A0||Ctl-1 - Ctl-0|
The following table lists mouse-action keys that can be referenced by a KEYSTROKE entry; this table has meaning only for graphical systems such as Windows. The table lists the mouse action, the corresponding key code, and the default exception value returned. See Using the Mouse in User Interface Programming for details on mouse handling.
|Action||Key Code||Exception Value|
|Left button pushed||Ml||81|
|Left button released||ML||82|
|Left button double-clicked||M1||83|
|Middle button pushed||Mm||84|
|Middle button released||MM||85|
|Middle button double-clicked||M2||86|
|Right button pushed||Mr||87|
|Right button released||MR||88|
|Right button double-clicked||M3||89|
The Host's Backspace and Line-Kill keys are not identified in the terminal database file. They are defined, instead, at the operating system level. The Backspace key is the key used to back up while you are typing command lines (usually either backspace or delete). The Line-Kill key is the one that is used to cancel an entire command line.
Control keys (Control plus another key) are not defined in the terminal database file. They are directly mapped by the runtime system to the corresponding control-key ASCII value. They can be referred to by either their ASCII value or by the key code listed. The DEL key does not have a key code; it can be referred to only by its ASCII value (127).
Some keys may have more than one name. When this occurs, the names have the following precedence:
For example, if a terminal whose left arrow key produces a Control-H is being used, and Control-H is the system's backspace key, that key would be treated as a Host's Backspace key (ZB). If the host's backspace were redefined (by operating system command) to be some other key, then this key would be considered a Left Arrow key (kl). It would be considered a Control-H (^H) only if the terminal database file were edited and the kl definition changed or removed.