I am trying to get input from the keyboard character by character.
I am writing my code in C.
The problem with getc and fgetc are that they force the user to enter a carriage return and then all buffered characters appear to be returned one at a time and processed. I want to process them immediatly not waiting for the carriage return key to be struck.
I found some code that mimmics the dos command kbhit().
This code almost works 100%...actually 95%.
There are a few bugs. I am using it, and it is working alright. I have to work around a few shortcomings.
What is the recommended way to do this with Linux?