The KEYEDIT statement defines editing keys for use with INPUT @.
KEYEDIT (action, key), (action, key), ...
A negative action value removes the key binding specified by key.
The KEYEDIT statement adds user defined alternative key bindings to the standard set used by the INPUT @ statement. These may validly replace default bindings. The newly bound keys remain in effect until either they are rebound by a further KEYEDIT statement or the process returns to the command prompt.
The INPUT @ statement checks for keys bound via the terminfo system or KEYEDIT before using the standard default bindings.
Example of a multi-byte key sequence
The F2 key of a vt100 terminal using the vt100-at definition with AccuTerm sends a three character sequence of "Esc O Q". The hexadecimal values of these characters are 1B, 4F, 51. The key value is formed by concatenating bytes with these character values in reverse order and adding 160. The simplest way to do this is
KEY = XTD('514F1B') + 160