X-Git-Url: https://git.danieliu.xyz/?a=blobdiff_plain;f=st.c;h=3a0a5198c61f934a686077d7e03f731d79b93f66;hb=504a165277c13797840c42c64807b59cd4e5f3a5;hp=98622ec077f605a7ec2a038cf720e0670337c0a7;hpb=9031e228ce283cd4847832acf012a910f74ad1ed;p=st.git 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");