aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2022-09-24 10:32:17 +0000
committerDaniel Eklöf <daniel@ekloef.se>2022-09-26 16:54:03 +0000
commitbb02b319d02f986c8f8f2562a77b5cfbd7d51e05 (patch)
tree410d82cefd4bba8933bf5379695aa3569e5bf198
parentterm: utmp: set ‘host’ to WAYLAND_DISPLAY (diff)
terminfo: add kxIN + kxOUT (focus in/out events)
These capabilities are not included in the standard ‘xterm’ or ‘xterm-256color’ terminfos. They’re used in ‘xterm+focus’ -> ‘xterm+sm+1002’ -> ‘xterm-1002|xterm+sm+1003’ -> ‘xterm-1003’ (https://invisible-island.net/ncurses/terminfo.ti.html#tic-xterm_focus) However, as far as I can tell, ncurses doesn’t use these capabilities at all.
-rw-r--r--CHANGELOG.md2
-rw-r--r--foot.info2
2 files changed, 3 insertions, 1 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 1bc41eef..dc56c989 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -47,7 +47,7 @@
* Support for adjusting the thickness of regular underlines ([#1136][1136]).
* Support (optional) for utmp logging with libutempter.
-
+* `kxIN` and `kxOUT` (focus in/out events) to terminfo.
[1136]: https://codeberg.org/dnkl/foot/issues/1136
diff --git a/foot.info b/foot.info
index 2dae3eca..f4030b22 100644
--- a/foot.info
+++ b/foot.info
@@ -218,6 +218,8 @@
knp=\E[6~,
kpp=\E[5~,
kri=\E[1;2A,
+ kxIN=\E[I,
+ kxOUT=\E[O,
oc=\E]104\E\\,
op=\E[39;49m,
rc=\E8,