I am working at programming in Linux as well. I am used to the getch() command in windows and the getche() [which does the echo] that gets one character from the keyboard and continues right on.
What you rarely get is a real answer. It is a waste of time getting replies like that.
is the 1st I have been able to find that comes close at all.
It uses getchar
() command BUT you must hit return to continue.
lists the info on "one-character-at-a-time mode (getch() in DOS)". It seems good to have the device active like this and not waiting for the user forever but who would know to look for this?
I am looking to write a simple texted based game and I really do not want to press enter after every key.
I am looking further myself but if you find or have found anything, please let me know.