patch 9.0.0996: if 'keyprotocol' is empty "xterm" still uses modifyOtherKeys
Problem: If 'keyprotocol' is empty "xterm" still uses modifyOtherKeys.
Solution: Remove t_TI, t_RK and t_TE from the "xterm" builtin termcap and
let the default value of 'keyprotocol' add those.
diff --git a/src/term.c b/src/term.c
index 3c9a243..3df1214 100644
--- a/src/term.c
+++ b/src/term.c
@@ -452,9 +452,11 @@
{(int)KS_TI, "\0337\033[?47h"},
{(int)KS_TE, "\033[?47l\0338"},
# endif
- {(int)KS_CTI, "\033[>4;2m"},
- {(int)KS_CRK, "\033[?4m"}, // see "builtin_mok2"
- {(int)KS_CTE, "\033[>4;m"},
+ // These are now under control of the 'keyprotocol' option, see
+ // "builtin_mok2".
+ // {(int)KS_CTI, "\033[>4;2m"},
+ // {(int)KS_CRK, "\033[?4m"},
+ // {(int)KS_CTE, "\033[>4;m"},
{(int)KS_CIS, "\033]1;"},
{(int)KS_CIE, "\007"},
{(int)KS_TS, "\033]2;"},