Skip to content

Commit

Permalink
xterm: use the DA1 query to determine if sixel enabled.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
hzeller committed Jan 4, 2025
1 parent c0bd6d7 commit 0f64f01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/term-query.cc
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ TermGraphicsInfo QuerySupportedGraphicsProtocol() {
result.preferred_graphics = GraphicsProtocol::kSixel;
}
if (find_str(data, len, "XTerm")) {
result.preferred_graphics = GraphicsProtocol::kSixel;
// Don't know yet if supports sixel, will query below
result.known_broken_sixel_cursor_placement = true;
}
if (find_str(data, len, "foot")) {
Expand Down

0 comments on commit 0f64f01

Please sign in to comment.