Linux analog of Windows GetAsyncKeyState ()

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.

+5
source share
1 answer

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.

+5
source

All Articles