diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2022-04-07 10:42:44 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2022-04-10 16:34:51 +0000 |
| commit | 5d6eaf606b5713365a232f188c922454943f2c09 (patch) | |
| tree | 0c8ec401e23bad2134090904f20049435ca64e27 /debug.h | |
| parent | pgo: fix selection.{start,end} initializers (diff) | |
input: improve XTerm compatibility when modifyOtherKeys=2
Before this, foot always emitted a CSI if _any_ modifier was
active. XTerm doesn’t behave quite like this. Instead, it appears to
special-case shift somewhat:
If the generated symbol (e.g ‘A’) is the upper case version of the
pressed key’s base symbol (‘a’), and is in the range a-z, emit a CSI.
If not emit a plain symbol:
Examples (Swedish layout):
* shift-a (generated symbol is ‘A’) emits a CSI
* shift-, (generated symbol is ‘;’) emits ‘;’
* shift-alt-, (generated symbol is ‘;’) emits a CSI
Closes #1009
Diffstat (limited to 'debug.h')
0 files changed, 0 insertions, 0 deletions
