From 7b215af0941c9452a23ba7a6607c1ddc844ca27f Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Fri, 11 Apr 2014 19:39:44 -0400 Subject: set TERM to a fixed value using screen for now for compatibility, but this should change to 'runes' or whatever eventually --- pty-unix.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'pty-unix.c') 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); } } -- cgit v1.2.3-54-g00ecf