st

simple terminal

git clone https://9o.is/git/st.git

commit e632c9d8b3ee18560f5d0ceb3e7e1f8122f4f92b
parent 657ea619f7a8ef99ec786f227a997358e4df28a1
Author: Eon S. Jeon <esjeon@hyunmu.am>
Date:   Tue, 17 Dec 2013 12:45:38 -0500

Prevent resizing stdin

This fixes a bug that the parent tty gets resized whenever you launch
st through command line.

The problem was that ioctl was resizing cmdfd before it gets
initialized in ttynew. Since cmdfd is a global variable, its initial
value is 0, and consequently stdin was being resized.

Diffstat:
Mst.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/st.c b/st.c @@ -3667,11 +3667,11 @@ run(void) { } } + ttynew(); if(!xw.isfixed) cresize(w, h); else cresize(xw.fw, xw.fh); - ttynew(); gettimeofday(&lastblink, NULL); gettimeofday(&last, NULL);