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`).
This commit is contained in:
parent
1419f29df6
commit
2cc637cdfe
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue