X-Git-Url: https://git.xinqibao.xyz/st.git/blobdiff_plain/9031e228ce283cd4847832acf012a910f74ad1ed..504a165277c13797840c42c64807b59cd4e5f3a5:/st.c 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");