In linux...how can my c program get a single character from a keyboard without hitting 'Enter'(newline)???
Printable View
In linux...how can my c program get a single character from a keyboard without hitting 'Enter'(newline)???
getchar,getche, getch functions i think can do that ...
You have to make stdin unbuffered
Try
setbuf
setvbuf
Or looking at termios
getch() , getche() arenīt ANSII-conform!!
klausi
You have to go into noncanonical mode. default is canonical