From 30566f79366011fca195dbecd5c224f99c1e346e Mon Sep 17 00:00:00 2001 From: Henner Zeller Date: Fri, 26 Jan 2024 07:11:42 -0800 Subject: [PATCH] Add detection for foot-terminal. It supports Sixel by default, use that as default graphics output there. Fixes #130 --- src/term-query.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/term-query.cc b/src/term-query.cc index c7acbc7..a4c5fc0 100644 --- a/src/term-query.cc +++ b/src/term-query.cc @@ -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; }