From the ncurses programmers guide:
The question is: How do you achieve the same functionality without reverting to non portable code? I tried:One-character-a-time. To disable the buffering of typed characters by the TTY driver and get a character-at-a-time input, you need to call
cbreak();
But still i couldn't disable the character buffering imposed by the system on standard keyboard input.Code:setbuf(stdin, NULL);
Basically ncurses is a fine library, and can be used easily to create and run text applications, but what about a purely ANSI C approach?