From 544669ff968beee1f522d72b2d92d1570c59f3ef Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Sun, 5 Feb 2017 20:02:47 -0600 Subject: Don't set SIGWINCH when reading ANSI size probe data, it causes a loop. --- lib/interestingtimes.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/interestingtimes.c b/lib/interestingtimes.c index 62670cbb..f028f5e9 100644 --- a/lib/interestingtimes.c +++ b/lib/interestingtimes.c @@ -71,7 +71,6 @@ int scan_key_getsize(char *scratch, int miliwait, unsigned *xx, unsigned *yy) if (key>0) { if (xx) *xx = (key>>10)&1023; if (yy) *yy = (key>>20)&1023; - toys.signal = SIGWINCH; return -3; } @@ -141,7 +140,7 @@ struct scan_key_list { // Scan stdin for a keypress, parsing known escape sequences // Blocks for miliwait miliseconds, none 0, forever if -1 -// Returns: 0-255=literal, -1=EOF, -2=NONE, 256-...=index into scan_key_list +// Returns: 0-255=literal, -1=EOF, -2=TIMEOUT, 256-...=index into scan_key_list // >512 is x<<9+y<<21 // scratch space is necessary because last char of !seq could start new seq // Zero out first byte of scratch before first call to scan_key -- cgit v1.2.3