From 03b896e7ad74aabbdb368fd30f2b66b381685edd Mon Sep 17 00:00:00 2001 From: nick black Date: Thu, 10 Jun 2021 14:49:37 -0400 Subject: [PATCH] send XTGETTCAP for terminal name --- src/lib/termdesc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/termdesc.c b/src/lib/termdesc.c index 55deb874b..7211a95ae 100644 --- a/src/lib/termdesc.c +++ b/src/lib/termdesc.c @@ -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; }