diff options
Diffstat (limited to 'src/tty.c')
-rw-r--r-- | src/tty.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -87,9 +87,9 @@ char tty_getchar(tty_t *tty) { } } -int tty_input_ready(tty_t *tty) { +int tty_input_ready(tty_t *tty, int pending) { fd_set readfs; - struct timeval tv = {0, 0}; + struct timeval tv = {0, pending ? 500000 : 0}; FD_ZERO(&readfs); FD_SET(tty->fdin, &readfs); select(tty->fdin + 1, &readfs, NULL, NULL, &tv); |