CONTENTS | INDEX | PREV | NEXT
SYNTAX : RANGE ;I ANY ESC ESC
7.1 : RANGE ;I (for negative first value)
RESULTING ARGUMENT: None
FUNCTION : Replace any normal key-action with a macro, much like a function
key definition, but separate for the various modes.
RANGE : MODE,CHAR
MODE : the mode(s) for which the change must be made.
Replacements can be set for command-mode, overstrike-mode
and insert-mode seprately - or combined. It is a matter of
combining the values representing each mode (as defined for
the CTRL_X-command). So a change for just command-mode would
need a value of 31, and for (for instance) both overstrike-
and insert mode a value of 32 + 33 = 65. Similarly, for all
modes at once, 31 + 32 + 33 = 96 can be used
7.1 Instead of the positive numbers above, negative numbers can
be used to undo a redefinition. In that case, the syntax
reverts to its second form (no character follows ;I).
If no redefinition is active when trying to undefine a key,
no error is reported; this situation is silently ignored.
CHAR : key to redefine or (7.1) undo.
EXAMPLE : 65,'a' ;I :m Press CTRL_C to abort ESC
Will cause 'a', when typing in both insert- and overstrike mode, to no
longer be echoed; only an informational message is displayed. This is
undone by: -65,'a' ;I
NOTE 1 : As soon as any definition becomes active in either insert- or overstrike-
mode, no backup-filee journaling is possible. A message is issued warning
about this when it happens.
NOTE 2 : Control-keys and function-keys cannot be redefined in this way.
NOTE 3 : Only one level of translation is done (if 'A' is defined to yield 'C'
and 'B' is defined to yield 'A', pressing 'B' will return an 'A' and
not a 'C').
MATRIX