I\'m having some problems getting ncurses\' getch() to block. Default operation seems to be non-blocking (or have I missed some initialization)? I would like it to work like
You need to call initscr() or newterm() to initialize curses before it will work. This works fine for me:
initscr()
newterm()
#include int main() { WINDOW *w; char c; w = initscr(); timeout(3000); c = getch(); endwin(); printf("received %c (%d)\n", c, (int) c); }