terminfo: add kxIN + kxOUT (focus in/out events)

These capabilities are not included in the standard ‘xterm’ or
‘xterm-256color’ terminfos. They’re used in

‘xterm+focus’ ->
‘xterm+sm+1002’ ->
‘xterm-1002|xterm+sm+1003’ ->
‘xterm-1003’

(https://invisible-island.net/ncurses/terminfo.ti.html#tic-xterm_focus)

However, as far as I can tell, ncurses doesn’t use these capabilities
at all.
This commit is contained in:
Daniel Eklöf 2022-09-24 12:32:17 +02:00
parent c93eb45b42
commit bb02b319d0
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
2 changed files with 3 additions and 1 deletions

View file

@ -47,7 +47,7 @@
* Support for adjusting the thickness of regular underlines ([#1136][1136]).
* Support (optional) for utmp logging with libutempter.
* `kxIN` and `kxOUT` (focus in/out events) to terminfo.
[1136]: https://codeberg.org/dnkl/foot/issues/1136

View file

@ -218,6 +218,8 @@
knp=\E[6~,
kpp=\E[5~,
kri=\E[1;2A,
kxIN=\E[I,
kxOUT=\E[O,
oc=\E]104\E\\,
op=\E[39;49m,
rc=\E8,