From 2cc637cdfed25f6c0e69820bcd062ebf01ae8a79 Mon Sep 17 00:00:00 2001 From: Goffi Date: Sat, 6 Nov 2021 18:53:00 +0100 Subject: [PATCH] cli (base): use `XTERM_VERSION` to detect XTerm: Using `TERM` is not good as it is used by other terminal emulators which are incompatible with ANSI sequences (seen with `cool-retro-term`). --- sat_frontends/jp/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sat_frontends/jp/base.py b/sat_frontends/jp/base.py index 96f2d8f8..24bb08dc 100644 --- a/sat_frontends/jp/base.py +++ b/sat_frontends/jp/base.py @@ -131,7 +131,7 @@ class LiberviaCli: if ((sys.stdin.isatty() and sys.stdout.isatty() and ( # XTerm - os.getenv("TERM", "") in {"xterm"} + os.getenv("XTERM_VERSION") # Konsole or os.getenv("KONSOLE_VERSION") # All VTE based terminals