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

Commit: 
https://github.com/vim/vim/commit/8420124c7c1a817cd01cd4d8847920ed9d998d0f
Author: Foxe Chen <[email protected]>
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 <[email protected]>
    Signed-off-by: Christian Brabandt <[email protected]>

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,
 /**/

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/vim_dev/E1wYSPp-00DMAk-Ne%40256bit.org.

Raspunde prin e-mail lui