timeout - control blocking on input
#include <curses.h> void timeout(int delay);
Refer to notimeout().