aboutsummaryrefslogtreecommitdiff
path: root/foot.info
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2021-08-05 17:21:57 +0000
committerDaniel Eklöf <daniel@ekloef.se>2021-08-06 20:34:47 +0000
commit159ae6cb95cc119a14696da337df730aee4661d0 (patch)
tree7ff51e1fcf6252abcc5e4083026a81e1c5fe499b /foot.info
parentMerge branch 'terminfo-ich1' (diff)
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.
Diffstat (limited to 'foot.info')
-rw-r--r--foot.info10
1 files changed, 3 insertions, 7 deletions
diff --git a/foot.info b/foot.info
index da13d2f2..f670e1f8 100644
--- a/foot.info
+++ b/foot.info
@@ -36,6 +36,7 @@ foot+base|foot base fragment,
Se=\E[ q,
Ss=\E[%p1%d q,
Sync=\EP=%p1%ds\E\\,
+ XM=\E[?1006;1000%?%p1%{1}%=%th%el%;,
acsc=``aaffggiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
bel=^G,
blink=\E[5m,
@@ -225,7 +226,7 @@ foot+base|foot base fragment,
khome=\EOH,
kich1=\E[2~,
kind=\E[1;2B,
- kmous=\E[M,
+ kmous=\E[<,
knp=\E[6~,
kp5=\EOE,
kpADD=\EOk,
@@ -278,12 +279,7 @@ foot+base|foot base fragment,
u8=\E[?%[;0123456789]c,
u9=\E[c,
vpa=\E[%i%p1%dd,
+ xm=\E[<%i%p3%d;%p1%d;%p2%d;%?%p4%tM%em%;,
-# 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%;,