aboutsummaryrefslogtreecommitdiff
path: root/foot.info
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2019-07-21 19:41:19 +0000
committerDaniel Eklöf <daniel@ekloef.se>2019-07-21 19:41:19 +0000
commitdf91698ff3368fa416ce5dc2fa51948efa5a6509 (patch)
treecd49c4f1ecd56796672a91dae590fbf0622fd1bd /foot.info
parentterminfo: since we now expose our SGR cap, set kmous=\E< (diff)
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.
Diffstat (limited to 'foot.info')
-rw-r--r--foot.info12
1 files changed, 10 insertions, 2 deletions
diff --git a/foot.info b/foot.info
index 306cd669..b83ed017 100644
--- a/foot.info
+++ b/foot.info
@@ -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%;,