From b6ea9d2dbcfe734d4dd36ca1f40c698f1ee64be0 Mon Sep 17 00:00:00 2001 From: Craig Barnes Date: Wed, 16 Feb 2022 14:08:22 +0000 Subject: [PATCH 1/2] terminfo: use DECSET 2026 instead of DCS sequences for Sync capability Even though it makes little difference to foot which is used in the terminfo entry, DECSET 2026 has some advantages[1] over the DCS sequences and we should probably promote the better of the 2 where possible. Note: the terminfo string was taken from Nicholas Marriott's suggestion[2] in the terminal-wg discussion. [1]: https://codeberg.org/dnkl/foot/issues/459 [2]: https://gitlab.freedesktop.org/terminal-wg/specifications/-/merge_requests/2#note_973680 --- foot.info | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/foot.info b/foot.info index f99e2aab..2dae3eca 100644 --- a/foot.info +++ b/foot.info @@ -34,7 +34,7 @@ Ms=\E]52;%p1%s;%p2%s\E\\, Se=\E[ q, Ss=\E[%p1%d q, - Sync=\EP=%p1%ds\E\\, + Sync=\E[?2026%?%p1%{1}%-%tl%eh, XM=\E[?1006;1000%?%p1%{1}%=%th%el%;, acsc=``aaffggiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~, bel=^G, From f8262f21256d1b8de5d18c3402682111f31a4d65 Mon Sep 17 00:00:00 2001 From: Craig Barnes Date: Wed, 16 Feb 2022 14:48:10 +0000 Subject: [PATCH 2/2] doc: ctlseq: recommend using DECSET 2026 for synchronized updates Instead of the somewhat problematic[1] DCS-based equivalent. [1]: https://codeberg.org/dnkl/foot/issues/459 --- doc/foot-ctlseqs.7.scd | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/foot-ctlseqs.7.scd b/doc/foot-ctlseqs.7.scd index 60c5b68e..420271e2 100644 --- a/doc/foot-ctlseqs.7.scd +++ b/doc/foot-ctlseqs.7.scd @@ -682,10 +682,10 @@ and are terminated by *\\E\\* (ST). | \\P $ q \\E\\ : Request selection or setting (DECRQSS). Implemented queries: DECSTBM, SGR and DECSCUSR. -| \\EP = 1 s \\E\\ -: Begin application synchronized updates -| \\EP = 2 s \\E\\ -: End application synchronized updates +| \\EP = _C_ s \\E\\ +: Begin (_C_=*1*) or end (_C_=*2*) application synchronized updates. + This sequence is supported for compatibility reasons, but it's + recommended to use private mode 2026 (see above) instead. | \\EP + q \\E\\ : Query builtin terminfo database (XTGETTCAP)