1 #include <Interface/Ncurses.hpp>
11 nodelay(stdscr, TRUE);
44 struct timeval timeout;
51 struct timeval* timeout_p = NULL;
56 FD_SET(STDIN_FILENO, &input);
60 retval = select(FD_SETSIZE, &input, NULL, NULL, timeout_p);
66 if ((retval == 1) && (c == ERR))
void delay_ms(int delay)
Sleeps for #delay miliseconds.
bool init()
Initializes Ncurses mode.
int getInput(int delay_ms=-1)
Returns a pressed character within a timespan of delay_ms (milliseconds).
void exit()
Quits Ncurses mode.