aboutsummaryrefslogtreecommitdiffstats
path: root/pty-unix.c
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2014-04-11 19:39:44 -0400
committerJesse Luehrs <doy@tozt.net>2014-04-11 19:39:44 -0400
commit7b215af0941c9452a23ba7a6607c1ddc844ca27f (patch)
treea9368c27a5f7fc57aae431fe0d7249575e9bacd2 /pty-unix.c
parentaed444fc0352092cd6c3021b79c7bb624c78b464 (diff)
downloadrunes-7b215af0941c9452a23ba7a6607c1ddc844ca27f.tar.gz
runes-7b215af0941c9452a23ba7a6607c1ddc844ca27f.zip
set TERM to a fixed value
using screen for now for compatibility, but this should change to 'runes' or whatever eventually
Diffstat (limited to 'pty-unix.c')
-rw-r--r--pty-unix.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/pty-unix.c b/pty-unix.c
index f01578a..aadd661 100644
--- a/pty-unix.c
+++ b/pty-unix.c
@@ -43,6 +43,10 @@ void runes_pty_backend_init(RunesTerm *t)
shell = "/bin/sh";
}
+ setenv("TERM", "screen", 1);
+ unsetenv("LINES");
+ unsetenv("COLUMNS");
+
execl(shell, shell, (char *)NULL);
}
}