send CSI>q query, necessary for picking up wezterm DCS #1759

This commit is contained in:
nick black 2021-06-12 14:11:34 -04:00 committed by Nick Black
parent 41231800c6
commit f6405ca051

View File

@ -237,7 +237,7 @@ query_sixel_details(tinfo* ti, int fd){
// and geometry. send XTGETTCAP for terminal name.
static int
send_initial_queries(int fd){
const char queries[] = "\x1b[=0c\x1b[>c\x1bP+q544e\x1b\\\x1b[?1;3;256S\x1b[?2;1;0S\x1b[?1;1;0S" ESC_DA;
const char queries[] = "\x1b[=0c\x1b[>c\x1b[>q\x1bP+q544e\x1b\\\x1b[?1;3;256S\x1b[?2;1;0S\x1b[?1;1;0S" ESC_DA;
if(blocking_write(fd, queries, strlen(queries))){
return -1;
}