I'm having some problems getting ncurses' getch () to block. Does the default work seem non-blocking (or did I skip some initialization)? I would like it to work as getch () on Windows. I tried different versions
timeout(3000000); nocbreak(); cbreak(); noraw(); etc...
(not all at the same time). I would prefer (explicitly) to use any WINDOW , if possible. A while loop around getch (), checking for a specific return value is also OK.
linux g ++ ncurses getch blocking
Jonas Byström May 25 '09 at 1:38 a.m. 2009-05-25 01:38
source share