Is there a Linux equivalent of windows function GetAsyncKeyState () ? Or maybe there is some asynchronous function that returns - an empty keyboard buffer or not?
Thank.
The key question here is: what is abstraction for? X windows, ncurses or stdio? Linux is not as simple and monolithic as Windows.
For stdio (a simple text program stdin / stdout) fgetc_unlockeddoes the trick.
fgetc_unlocked