diff options
author | Jesse Luehrs <doy@tozt.net> | 2014-04-23 17:22:26 -0400 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2014-04-23 17:22:26 -0400 |
commit | 9f5a234faa692e3e797537ceeac0dc4a299efa2a (patch) | |
tree | e81ab6c2b39edf9392f8d47983f19aa8bd285990 | |
parent | c1f8d8702b77d949011fd95ffe550ca774e94a1e (diff) | |
download | runes-9f5a234faa692e3e797537ceeac0dc4a299efa2a.tar.gz runes-9f5a234faa692e3e797537ceeac0dc4a299efa2a.zip |
unset COLORTERM too (dolmen, #7)
-rw-r--r-- | src/pty-unix.c | 6 |
1 files changed, 6 insertions, 0 deletions
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"); |