From: Foxe Chen Date: Sat, 13 Jun 2026 17:36:01 +0000 (+0000) Subject: patch 9.2.0631: DECRQM and SGR Mouse not supported in foot terminal X-Git-Tag: v9.2.0631^0 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8420124c7c1a817cd01cd4d8847920ed9d998d0f;p=thirdparty%2Fvim.git 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 Signed-off-by: Christian Brabandt --- diff --git a/src/term.c b/src/term.c index 19d287223b..dcb9c92442 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 7f2591dfe1..fbf3f5a3fe 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, /**/