Skip to content

Commit

Permalink
Add detection for foot-terminal.
Browse files Browse the repository at this point in the history
It supports Sixel by default, use that as default graphics output
there.

Fixes #130
  • Loading branch information
hzeller committed Jan 26, 2024
1 parent b03e190 commit 30566f7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/term-query.cc
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,9 @@ TermGraphicsInfo QuerySupportedGraphicsProtocol() {
result.preferred_graphics = GraphicsProtocol::kSixel;
result.known_broken_sixel_cursor_placement = true;
}
if (contains(data, len, "foot")) {
result.preferred_graphics = GraphicsProtocol::kSixel;
}
if (contains(data, len, "tmux")) {
result.in_tmux = true;
}
Expand Down

0 comments on commit 30566f7

Please sign in to comment.