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

dankamongmen/windows-tester
nick black 3 years ago
parent a8be5afe3a
commit d4d96d3bf2

@ -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

Loading…
Cancel
Save