ReadKey like Function in C

Lee Carver leea at ssc-vax.UUCP
Wed Aug 16 02:02:34 AEST 1989


In this zoo of discussion on "getch", i'd like to add a shot in
support of "kbhit()".  In particular, I'd like kbhit to return
ture if input is waiting (i.e. getchar will NOT block) and
false otherwise.

This has the advantage of working with file streams, as well as
with "keyboards".  Also, the sematics cover such block-oriented
devices as 3270.



More information about the Comp.std.c mailing list