[queries] don't send kitty query on windows #2359 #2245

This commit is contained in:
nick black 2021-11-20 20:14:00 -05:00
parent a8be5afe3a
commit d4d96d3bf2

View File

@ -326,7 +326,13 @@ init_terminfo_esc(tinfo* ti, const char* name, escape_e idx,
// send this with the other identification queries, since APCs tend not to
// be consumed by certain terminal emulators (looking at you, Linux console)
// which can be identified directly, sans queries.
// we do not send this query on Windows because it is bled through ConHost,
// and echoed onto the standard output.
#ifndef __MINGW64__
#define KITTYQUERY "\x1b_Gi=1,a=q;\x1b\\"
#else
#define KITTYQUERY
#endif
// request kitty keyboard protocol features 1, 2, and 8, first pushing current.
// see https://sw.kovidgoyal.net/kitty/keyboard-protocol/#progressive-enhancement