From 916c3fb0040ff697e2abfe3791e89512499f8ccb Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Sun, 8 Oct 2006 23:43:13 +0000 Subject: 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. --- main.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'main.c') diff --git a/main.c b/main.c index 517644a..56a6b8d 100644 --- a/main.c +++ b/main.c @@ -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)) { -- cgit v1.2.1