summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2006-10-08 23:43:13 +0000
committerRich Felker <dalias@aerifal.cx>2006-10-08 23:43:13 +0000
commit916c3fb0040ff697e2abfe3791e89512499f8ccb (patch)
tree39c1689ffed8e89100a25045329e999751b874bc /main.c
parent91f215a78c28986a12f4cd9d5e03ffea17b3363e (diff)
downloaduuterm-916c3fb0040ff697e2abfe3791e89512499f8ccb.tar.gz
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.c4
1 files changed, 3 insertions, 1 deletions
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)) {