From 2f59fc72827aa88816556f333b10d80c013dd71c Mon Sep 17 00:00:00 2001 From: nick black Date: Sun, 18 Apr 2021 10:57:31 -0400 Subject: [PATCH] turn on sextants and quadrants for foot terminal emulator --- src/lib/terminfo.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/lib/terminfo.c b/src/lib/terminfo.c index 5c681217c..34904467a 100644 --- a/src/lib/terminfo.c +++ b/src/lib/terminfo.c @@ -52,7 +52,10 @@ apply_term_heuristics(tinfo* ti, const char* termname){ termname = "unknown"; } ti->braille = true; // most everyone has working braille, even from fonts - if(strstr(termname, "kitty")){ // kitty (https://sw.kovidgoyal.net/kitty/) + if(strcmp(termname, "foot") == 0){ + ti->sextants = true; + ti->quadrants = true; + }else if(strstr(termname, "kitty")){ // kitty (https://sw.kovidgoyal.net/kitty/) // see https://sw.kovidgoyal.net/kitty/protocol-extensions.html // FIXME detect the actual default background color; this assumes it to // be RGB(0, 0, 0) (the default). we could also just set it, i guess.