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

@@ -419,9 +419,8 @@ input_key_client_supports_extended(struct client *c, key_code key)
return (1);
if (options_get_number(global_options, "extended-keys") == 0)
return (0);
if (options_get_number(global_options, "extended-keys-format") ==
EXTENDED_KEYS_KITTY)
return ((c->tty.flags & TTY_KKBPUSHED) != 0);
if (c->tty.flags & TTY_KKBPUSHED)
return (1);
return (tty_term_has(c->tty.term, TTYC_ENEKS));
}