diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2020-11-11 17:28:37 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2020-11-11 17:28:37 +0000 |
| commit | deb2c2db6d153c6f9e89a3180180edda5bc6786c (patch) | |
| tree | e51c6304c8555181f8274af3fd4e837bc90e6555 /scripts | |
| parent | input: track num lock state (diff) | |
input: enforce ‘numerical’ keypad mode when Num Lock override is enabled
When num lock override has been enabled via “CSI?1035h” (the default),
keypad is always considered to be in ‘numerical’ mode.
This affects how keypad keys are translated to escape sequences when
Num Lock is active.
The keypad has four modes:
* Num Lock off, numerical mode
* Num Lock off, application mode
* Num Lock on, numerical mode
* Num Lock on, application mode
The keymap is identical for numerical and application mode when Num
Lock is off, meaning the keypad effectively has three different modes.
In XTerm, numerical and application mode _can_ be the same, **if** the
‘numLock’ resource is set to true (the default). It is only when
‘numLock’ is false that the application mode is actually used.
This patch changes foot to do the same. We don’t expose an option, but
do implement “CSI ? 1035”.
Closes #194
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions
