Commit: patch 9.2.0631: DECRQM and SGR Mouse not supported in foot terminal

1 view
Skip to first unread message

Christian Brabandt

unread,
Jun 13, 2026, 1:45:16 PM (10 hours ago) Jun 13
to vim...@googlegroups.com
patch 9.2.0631: DECRQM and SGR Mouse not supported in foot terminal

Commit: https://github.com/vim/vim/commit/8420124c7c1a817cd01cd4d8847920ed9d998d0f
Author: Foxe Chen <chen...@gmail.com>
Date: Sat Jun 13 17:36:01 2026 +0000

patch 9.2.0631: DECRQM and SGR Mouse not supported in foot terminal

Problem: DECRQM and SGR Mouse not supported in foot terminal
Solution: Explicitly enable those features when running in a foot
terminal (Foxe Chen)

closes: #20503

Signed-off-by: Foxe Chen <chen...@gmail.com>
Signed-off-by: Christian Brabandt <c...@256bit.org>

diff --git a/src/term.c b/src/term.c
index 19d287223..dcb9c9244 100644
--- a/src/term.c
+++ b/src/term.c
@@ -5274,6 +5274,13 @@ handle_version_response(int first, int *arg, int argc, char_u *tp)
term_props[TPR_DECRQM].tpr_status = TPR_YES;
}

+ // foot terminal sends 1;12700;0
+ if (arg[0] == 1 && version == 12700 && arg[2] == 0)
+ {
+ term_props[TPR_MOUSE].tpr_status = TPR_MOUSE_SGR;
+ term_props[TPR_DECRQM].tpr_status = TPR_YES;
+ }
+
// GNU screen sends 83;30600;0, 83;40500;0, etc.
// 30600/40500 is a version number of GNU screen. DA2 support is added
// on 3.6. DCS string has a special meaning to GNU screen, but xterm
diff --git a/src/version.c b/src/version.c
index 7f2591dfe..fbf3f5a3f 100644
--- a/src/version.c
+++ b/src/version.c
@@ -754,6 +754,8 @@ static char *(features[]) =

static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 631,
/**/
630,
/**/
Reply all
Reply to author
Forward
0 new messages