aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--st.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/st.c b/st.c
index 98622ec..3a0a519 100644
--- a/st.c
+++ b/st.c
@@ -1440,6 +1440,8 @@ ttynew(void)
if (openpty(&m, &s, NULL, NULL, &w) < 0)
die("openpty failed: %s\n", strerror(errno));
+ ttyresize();
+
switch (pid = fork()) {
case -1:
die("fork failed\n");
remember that computers suck.