From a34ae5d527616c33a0f544e82db56cba9a14e0e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Fri, 29 Mar 2024 11:40:15 +0100 Subject: [PATCH] terminfo: add fe/fd (focus enable/disable) These are new capabilities, recently added to ncurses. Applications are supposed to use these, instead of XM (to enable focus events). So, remove "CSI ? 1004h" from XM. --- CHANGELOG.md | 5 +++++ foot.info | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 960b197c..6da8ef0c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -69,6 +69,8 @@ * Rectangular edit functions: `DECCARA`, `DECRARA`, `DECCRA`, `DECFRA` and `DECERA` ([#1633][1633]). * `Rect` capability to terminfo. +* `fe` and `fd` (focus in/out enable/disable) capabilities to + terminfo. [1348]: https://codeberg.org/dnkl/foot/issues/1348 [1633]: https://codeberg.org/dnkl/foot/issues/1633 @@ -114,6 +116,9 @@ last sixel ([#chafa-192][chafa-192]). * Sixel: trailing, fully transparent rows are now trimmed ([#chafa-192][chafa-192]). +* `1004` (enable focus in/out events) removed from the `XM` terminfo + capability. To enable focus in/out, use the `fe` and `fd` + capabilities instead. [1526]: https://codeberg.org/dnkl/foot/issues/1526 [1528]: https://codeberg.org/dnkl/foot/issues/1528 diff --git a/foot.info b/foot.info index 319d0781..fe7e0632 100644 --- a/foot.info +++ b/foot.info @@ -43,7 +43,7 @@ Ss=\E[%p1%d q, Sync=\E[?2026%?%p1%{1}%-%tl%eh%;, TS=\E]2;, - XM=\E[?1006;1004;1000%?%p1%{1}%=%th%el%;, + XM=\E[?1006;1000%?%p1%{1}%=%th%el%;, XR=\E[>0q, acsc=``aaffggiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~, bel=^G, @@ -75,6 +75,8 @@ ed=\E[J, el1=\E[1K, el=\E[K, + fd=\E[?1004l, + fe=\E[?1004h, flash=\E]555\E\\, fsl=\E\\, home=\E[H,