Michel van Bergen
2006-03-03 13:38:37 UTC
Hi,
I'm new to Linux. For a C console application I need unbuffered keyboard input
(non blocked). I have tried to use select() and poll() but they both buffer
until a '\n'. setvbuf() to set the stream unbuffered don't seem to work.
In some operating systems it's posible to set a signal/event on data available.
Is there a way to do a timed read() that isn't buffered. How to set the the
input stream to unbuffered.
Thanks in advancd for any help.
Michel.
I'm new to Linux. For a C console application I need unbuffered keyboard input
(non blocked). I have tried to use select() and poll() but they both buffer
until a '\n'. setvbuf() to set the stream unbuffered don't seem to work.
In some operating systems it's posible to set a signal/event on data available.
Is there a way to do a timed read() that isn't buffered. How to set the the
input stream to unbuffered.
Thanks in advancd for any help.
Michel.