summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Lohmann <20h@r-36.net>2012-09-05 00:08:13 +0200
committerChristoph Lohmann <20h@r-36.net>2012-09-05 00:08:13 +0200
commit67c1a23053666dbac6b1ff9b17698f59b6b27887 (patch)
tree7ab841ca2a4a4258279aad0aae15f7938e1e141e
parente09709d92d89c8593f7390f12dc22fdc563eb57f (diff)
Fixing the resizing behaviour.
-rw-r--r--st.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/st.c b/st.c
index a2564f8..cf329fd 100644
--- a/st.c
+++ b/st.c
@@ -739,6 +739,10 @@ execsh(void) {
char **args;
char *envshell = getenv("SHELL");
+ unsetenv("COLUMNS");
+ unsetenv("LINES");
+ unsetenv("TERMCAP");
+
DEFAULT(envshell, SHELL);
putenv("TERM="TNAME);
args = opt_cmd ? opt_cmd : (char*[]){envshell, "-i", NULL};