From f7a6d14ca6a6c36e0cfcfc4c98c45e5cb1a6d230 Mon Sep 17 00:00:00 2001 From: nick black Date: Tue, 31 Aug 2021 15:47:21 -0400 Subject: [PATCH] kitty keyboard: send initial query #2131 --- src/lib/termdesc.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/lib/termdesc.c b/src/lib/termdesc.c index c1a05f57ee..fd2ab8afa2 100644 --- a/src/lib/termdesc.c +++ b/src/lib/termdesc.c @@ -317,10 +317,15 @@ init_terminfo_esc(tinfo* ti, const char* name, escape_e idx, // which can be identified directly, sans queries. #define KITTYQUERY "\x1b_Gi=1,a=q;\x1b\\" +// the kitty keyboard protocol allows unambiguous, complete identification of +// input events. this queries for the level of support. +#define KBDQUERY "\x1b[?u" + // these queries (terminated with a Primary Device Attributes, to which // all known terminals reply) hopefully can uniquely and unquestionably // identify the terminal to which we are talking. #define IDQUERIES KITTYQUERY \ + KBDQUERY \ TRIDEVATTR \ XTVERSION \ XTGETTCAPTN \