Is there some Linux analog of windows function GetAsyncKeyState() ? Or maybe there exists some asynchronous function which returns – Does keyboard buffer empty or not ?
Thanks.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The key question here is: For which abstraction? X windows, ncurses or stdio? Linux isn’t as simple and monolithic as Windows is.
For stdio (plain old stdin/stdout text program)
fgetc_unlockeddoes the trick.