From e7c1a93d29f6e6d3962d8444834a8b90f367170d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Sun, 1 Jan 2023 10:22:54 +0100 Subject: [PATCH] terminfo: add entries for bracketed paste Ncurses added these in 2022-12-24, but they have been used/supported by vim since 2017. * BE - Bracketed paste Enable * BD - Bracketed paste Disable * PE - Paste Enable (i.e. "begin") * PD - Paste Disable (i.e. "end") --- CHANGELOG.md | 2 ++ foot.info | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4aadd7bc..f10f2b75 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -56,6 +56,8 @@ * `font-size-adjustment=N[px]` option, letting you configure how much to increment/decrement the font size when zooming in or out ([#1188][1188]). +* Bracketed paste terminfo entries (`BD`, `BE`, `PD` and `PE`, added + to ncurses in 2022-12-24). Vim makes use of these. [1136]: https://codeberg.org/dnkl/foot/issues/1136 [1225]: https://codeberg.org/dnkl/foot/issues/1225 diff --git a/foot.info b/foot.info index f4030b22..33769278 100644 --- a/foot.info +++ b/foot.info @@ -28,10 +28,14 @@ it#8, lines#24, pairs#0x10000, + BD=\E[?2004l, + BE=\E[?2004h, Cr=\E]112\E\\, Cs=\E]12;%p1%s\E\\, E3=\E[3J, Ms=\E]52;%p1%s;%p2%s\E\\, + PD=\E[201~, + PE=\E[200~, Se=\E[ q, Ss=\E[%p1%d q, Sync=\E[?2026%?%p1%{1}%-%tl%eh,