Make Kitty keyboard negotiation per client

This commit is contained in:
Michael Grant
2026-09-15 05:45:58 +01:00
parent 5e5cc3e5bc
commit f54d4139b3
6 changed files with 149 additions and 9 deletions

View File

@@ -1122,8 +1122,7 @@ tty_keys_extended_key(struct tty *tty, const char *buf, size_t len,
utf8_char uc;
*size = 0;
if (options_get_number(global_options, "extended-keys-format") ==
EXTENDED_KEYS_KITTY)
if (tty->flags & TTY_KKBPUSHED)
return (-1);
/* First two bytes are always \033[. */