a tad annoying, when external programmes such as GNU screen are running,

we don’t get SIGWINCH when the window size changes during the runtime of
that, so, the signal is only usable reliably during editing in the shell
and we re-check the window size before each interactive edit line again
This commit is contained in:
tg
2010-07-25 11:35:43 +00:00
parent befbed2859
commit c187f3089f
5 changed files with 24 additions and 23 deletions

4
var.c
View File

@ -26,7 +26,7 @@
#include <sys/sysctl.h>
#endif
__RCSID("$MirOS: src/bin/mksh/var.c,v 1.109 2010/07/18 17:29:50 tg Exp $");
__RCSID("$MirOS: src/bin/mksh/var.c,v 1.110 2010/07/25 11:35:43 tg Exp $");
/*
* Variables
@ -1454,7 +1454,7 @@ change_winsz(void)
}
#ifdef TIOCGWINSZ
/* check if window size has changed since first time */
/* check if window size has changed */
if (tty_fd >= 0) {
struct winsize ws;