aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2021-08-06 20:35:03 +0000
committerDaniel Eklöf <daniel@ekloef.se>2021-08-06 20:35:03 +0000
commita3cd8ebf3c5933df0fa25e0f4531028160a43abc (patch)
tree7ff51e1fcf6252abcc5e4083026a81e1c5fe499b
parentMerge branch 'terminfo-ich1' (diff)
parentterminfo: change kmous to \E[<, add XM+xm capabilities (diff)
Merge branch 'terminfo-kmous-xm'
-rw-r--r--CHANGELOG.md2
-rw-r--r--foot.info10
2 files changed, 5 insertions, 7 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 78b297c9..8d971660 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -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 application’s process group,
instead of just to the client application’s process.
+* `kmous` terminfo capability from `\E[M` to `\E[<`.
### Deprecated
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%;,