9 void cleanup_input(void)
13 static int conv_special(int key)
40 if(key >= 58 && key <= 70) {
41 return KB_F1 + (key - 59);
47 int poll_input(union event *ev)
53 if((ev->key.key = getch()) == 0) {
60 if((ev->key.key = conv_special(ev->key.key)) == -1) {
64 if(ev->key.key == '\r') {