From 9f5a234faa692e3e797537ceeac0dc4a299efa2a Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Wed, 23 Apr 2014 17:22:26 -0400 Subject: unset COLORTERM too (dolmen, #7) --- src/pty-unix.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/pty-unix.c b/src/pty-unix.c index bc1b8ba..33b33f1 100644 --- a/src/pty-unix.c +++ b/src/pty-unix.c @@ -55,6 +55,12 @@ void runes_pty_backend_spawn_subprocess(RunesTerm *t) /* XXX should use a different TERM value eventually, but for right now * screen is compatible enough */ setenv("TERM", "screen", 1); + /* gnome-terminal sets this, so avoid confusing applications which + * introspect it. not setting it to something else because as far as i + * can tell, it's not actually useful these days, given that terminfo + * databases are much more reliable than they were 10 years ago */ + unsetenv("COLORTERM"); + unsetenv("LINES"); unsetenv("COLUMNS"); -- cgit v1.2.3-54-g00ecf