diff options
author | Rob Landley <rob@landley.net> | 2017-02-05 20:02:47 -0600 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2017-02-05 20:02:47 -0600 |
commit | 544669ff968beee1f522d72b2d92d1570c59f3ef (patch) | |
tree | 83436459e04757926ef596a1e8e2565cc3e2f901 /lib | |
parent | ea2067aedd4509b664211dd9815563742a31921d (diff) | |
download | toybox-544669ff968beee1f522d72b2d92d1570c59f3ef.tar.gz |
Don't set SIGWINCH when reading ANSI size probe data, it causes a loop.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/interestingtimes.c | 3 |
1 files changed, 1 insertions, 2 deletions
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 |