diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2019-07-21 19:41:19 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2019-07-21 19:41:19 +0000 |
| commit | df91698ff3368fa416ce5dc2fa51948efa5a6509 (patch) | |
| tree | cd49c4f1ecd56796672a91dae590fbf0622fd1bd /foot.info | |
| parent | terminfo: 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.info | 12 |
1 files changed, 10 insertions, 2 deletions
@@ -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%;, |
