Skip to content

Commit aaee45b

Browse files
committed
Add guesswork for OG XTerm
1 parent 8efab5d commit aaee45b

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/textual_dev/tools/diagnose.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,8 @@ def _guess_term() -> str:
8686
term_program = "PyCharm"
8787
elif "GNOME_TERMINAL_SCREEN" in os.environ:
8888
term_program = "GNOME Terminal"
89+
elif "XTERM_VERSION" in os.environ:
90+
term_program = os.environ.get("XTERM_VERSION", "XTerm")
8991

9092
else:
9193
# See if we can pull out some sort of version information too.

0 commit comments

Comments
 (0)