Question
Non-blocking function to detect Console stdin input? conio.h? kbhit()?
Posted on September 13, 2017 at 18:41
I'm looking for a way to input data on stdin, but with a non-blocking function. Everything I've tried in stdio.h blocks program execution while waiting for a keypress. I want to input a keypress if one has occurred, but continue program execution if one has not.
I understand the function kbhit() is usually in conio.h, but that library isn't present in my AC6 install. Is it available?
Is there another way?
