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.foxe@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
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
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 631,
/**/
630,
/**/