all repos — st @ 504a165277c13797840c42c64807b59cd4e5f3a5

st (suckless terminal) config

Enforce a terminal size to reduce race conditions in too efficient apps.

dvtm is too fast in starting up. It will then have a race condition in finding
the right. terminal size.
Christoph Lohmann 20h@r-36.net
commit

504a165277c13797840c42c64807b59cd4e5f3a5

parent

9031e228ce283cd4847832acf012a910f74ad1ed

1 files changed, 2 insertions(+), 0 deletions(-)

jump to
M st.cst.c

@@ -1440,6 +1440,8 @@ /* seems to work fine on linux, openbsd and freebsd */

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");