In linux...how can my c program get a single character from a keyboard without hitting 'Enter'(newline)???
In linux...how can my c program get a single character from a keyboard without hitting 'Enter'(newline)???
You have to make stdin unbuffered
Try
setbuf
setvbuf
Or looking at termios
getch() , getche() arenīt ANSII-conform!!
klausi
When I close my eyes nobody can see me...
You have to go into noncanonical mode. default is canonical