diff options
| author | Tim Allen <screwtape@froup.com> | 2021-03-26 15:43:42 +1100 |
|---|---|---|
| committer | Tim Allen <screwtape@froup.com> | 2021-03-26 15:43:42 +1100 |
| commit | 3aaf32f48f2cc76572888e90fb0a66a67643ff31 (patch) | |
| tree | 05f38295e1d4d6c5f5844e56b213c78b89adbeee /rc/tools/python | |
| parent | f7c1702965795e7166801847d253050f81e32c26 (diff) | |
src/ncurses_ui: Teach Kakoune about all the numeric keypad keys.
Kakoune now knows about all the keypad keys listed in:
https://invisible-island.net/xterm/ctlseqs/ctlseqs.html#h2-PC-Style-Function-Keys
https://invisible-island.net/xterm/ctlseqs/ctlseqs.html#h2-VT220-Style-Function-Keys
The VT220-style encodings are used to for modified numeric keys when NumLock is
off. For example, consider the 8/Up key:
| Modifiers | Sequence | Notes |
|-----------------|-------------|-------------------|
| Unmodified | CSI A | Ordinary up arrow |
| Shift | SS3 2 x | Shift-8 |
| NumLock | 8 | Ordinary 8 |
| Shift + NumLock | CSI 1 ; 2 A | Shift-Up |
Note that even though the terminal distinguishes between keypad and regular keys,
Kakoune maps keypad keys onto regular keys - keypad Enter is still <ret>, it
just supports more modifiers than the regular Enter key.
Diffstat (limited to 'rc/tools/python')
0 files changed, 0 insertions, 0 deletions
