diff options
author | Rich Felker <dalias@aerifal.cx> | 2006-10-08 23:43:13 +0000 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2006-10-08 23:43:13 +0000 |
commit | 916c3fb0040ff697e2abfe3791e89512499f8ccb (patch) | |
tree | 39c1689ffed8e89100a25045329e999751b874bc /main.c | |
parent | 91f215a78c28986a12f4cd9d5e03ffea17b3363e (diff) |
fbcon target: let the kernel do the key mapping for us...
this made it easy to fix vc switching and window resizing, so i'm
fixing those in the same commit as well.
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -62,8 +62,10 @@ int main(int argc, char *argv[]) max = uudisp_fd_set(&d, tty, &fds); tv.tv_sec = 0; tv.tv_usec = 250000; - if (select(max, &fds, NULL, NULL, &tv) == 0) + if (select(max, &fds, NULL, NULL, &tv) <= 0) { d.blink++; + FD_ZERO(&fds); + } /* Process input from the tty, up to buffer size */ if (FD_ISSET(tty, &fds)) { |