terminfo: revert kmous to \E[M

ncurses disables mouse support completely if kmous != \E[M. Now, since
kmous *has* to match XM, this means we must also disable XM.
This commit is contained in:
Daniel Eklöf 2019-07-21 21:41:19 +02:00
parent ef06576aaf
commit df91698ff3
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -144,7 +144,7 @@ foot+base|foot base fragment,
khome=\EOH,
kich1=\E[2~,
kind=\E[1;2B,
kmous=\E[<,
kmous=\E[M,
knp=\E[6~,
kpp=\E[5~,
kri=\E[1;2A,
@ -179,4 +179,12 @@ foot+base|foot base fragment,
u8=\E[?%[;0123456789]c,
u9=\E[c,
vpa=\E[%i%p1%dd,
XM=\E[?1006;1000%?%p1%{1}%=%th%el%;,
# XM tells ncurses how to initialize the mouse. The xterm terminfo
# uses this to enable SGR (1006h). However, doing this also requirese
# kmous=\E[<. But, ncurses *also* disables the mouse _completely_ if
# kmous != \E[M (unless the TERM name contains "xterm"...)
# XT,
# AX,
# XM=\E[?1006;1000%?%p1%{1}%=%th%el%;,
# xm=\E[<%p1%d;%p2%d;%p3%d;%?%p4%tM%em%;,