Skip to content

Commit 0f64f01

Browse files
committed
xterm: use the DA1 query to determine if sixel enabled.
xterm only has sixel enabled if started with `-ti vt340`; the recently added DA1 query will help to determine if we can use sixel output or need to use unicode blocks.
1 parent c0bd6d7 commit 0f64f01

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/term-query.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ TermGraphicsInfo QuerySupportedGraphicsProtocol() {
286286
result.preferred_graphics = GraphicsProtocol::kSixel;
287287
}
288288
if (find_str(data, len, "XTerm")) {
289-
result.preferred_graphics = GraphicsProtocol::kSixel;
289+
// Don't know yet if supports sixel, will query below
290290
result.known_broken_sixel_cursor_placement = true;
291291
}
292292
if (find_str(data, len, "foot")) {

0 commit comments

Comments
 (0)