2 #include <sys/select.h>
11 void cleanup_input(void)
15 static int convkey(int key)
51 int poll_input(union event *ev)
54 if((ev->key.key = convkey(getch())) == -1) {
63 struct timeval tv = {0, 0};
68 while(select(1, &rdset, 0, 0, &tv) == -1 && errno == EINTR);
70 if(FD_ISSET(0, &rdset)) {