send XTGETTCAP for terminal name

pull/1764/head
nick black 3 years ago committed by Nick Black
parent cadd4aefee
commit 03b896e7ad

@ -234,10 +234,10 @@ query_sixel_details(tinfo* ti, int fd){
// we send an XTSMGRAPHICS to set up 256 color registers (the most we can
// currently take advantage of; we need at least 64 to use sixel at all.
// maybe that works, maybe it doesn't. then query both color registers
// and geometry.
// and geometry. send XTGETTCAP for terminal name.
static int
send_initial_queries(int fd){
const char queries[] = "\x1b[?1;3;256S\x1b[?2;1;0S\x1b[?1;1;0S" ESC_DA;
const char queries[] = "\33P+q6b697474792d71756572792d616c6c6f775f68797065726c696e6b73\33\\\x1b[?1;3;256S\x1b[?2;1;0S\x1b[?1;1;0S" ESC_DA;
if(blocking_write(fd, queries, strlen(queries))){
return -1;
}

Loading…
Cancel
Save