patch 9.0.0976: enabling the kitty keyboard protocol uses push/pop
Problem: Enabling the kitty keyboard protocol uses push/pop.
Solution: Use the start/stop codes to avoid unpredictable behavior.
diff --git a/src/term.c b/src/term.c
index 74c4612..9a45f46 100644
--- a/src/term.c
+++ b/src/term.c
@@ -608,11 +608,11 @@
static tcap_entry_T builtin_kitty[] = {
// t_TI enables the kitty keyboard protocol, requests the kitty keyboard
// protocol state and requests the version response.
- {(int)KS_CTI, "\033[>1u\033[?u\033[>c"},
+ {(int)KS_CTI, "\033[=1;1u\033[?u\033[>c"},
// t_TE also disabled modifyOtherKeys, because t_TI from xterm may already
// have been used.
- {(int)KS_CTE, "\033[>4;m\033[<u"},
+ {(int)KS_CTE, "\033[>4;m\033[=0;1u"},
{(int)KS_NAME, NULL} // end marker
};