Posted on 2000-02-15
Say I have a console app that has a menu like this say:
1. go here
2. go there
At the moment I am using read() calls to read in the data.. the problem is the read call waits for the enter button to be pressed before stopping reading. This sux.. I want a way so that if 1 is pressed *instantly* my program reacts to the input and goes to 1.. I don't want to wait for say 1 and then "enter".
Anyone got any ideas?