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