terminfo: change kmous to \E[<, add XM+xm capabilities

ncurses has had a bug where mouse support is completely disabled if the terminfo
didn’t have kmous=\E[M, *or*, the terminfo *name* contained ‘xterm’.

This appears to have been fixed.

Thus, change kmous to \E[<, and set xm/XM accordingly. With this, ncurses
application will use the SGR mouse reporting mode, instead of the legacy
reporting mode.
This commit is contained in:
Daniel Eklöf 2021-08-05 19:21:57 +02:00
parent 69c9662070
commit 159ae6cb95
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
2 changed files with 5 additions and 7 deletions

View file

@ -41,6 +41,7 @@
of box drawing characters rendered by foot itself (rather than using
font glyphs) (https://codeberg.org/dnkl/foot/issues/474).
* `ich1=\E[@` to terminfo.
* `XM`+`xm` to terminfo.
### Changed
@ -52,6 +53,7 @@
after closing the PTY, instead of waiting 2 seconds.
* Foot now sends `SIGTERM`/`SIGKILL` to the client applications process group,
instead of just to the client applications process.
* `kmous` terminfo capability from `\E[M` to `\E[<`.
### Deprecated