[comp.lang.c++] how does one do "cbreak" type code in C++?

rae@geaclib.UUCP (Reid Ellis) (02/02/89)

Is there a "nice" method whereby one can get characters from cin in a
non-blocking manner?  I was looking at stream.h and was thinking along
the lines of extracting the FILE* out of the i/ostream, and then getting
a file descriptor out of that and setting it to be FNDELAY, but this seems
too obtuse.  Surely there must be a better way of doing this?

<insert obligatory inquiries about PD C++ compilers for XXX here>

Reid