I want to read every keystroke from a console application written in c under windows and linux immediately. Unfortunately the function gets(line) does only return a value, when
You're probably looking for getch(). On Windows (at least VC++) it's declared in . On Linux it's part of curses.
getch()