Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.csd.uwm.edu!cs.utexas.edu!uunet!wuarchive!texbell!sugar!ficc!peter From: peter@ficc.uu.net (Peter da Silva) Newsgroups: comp.std.c Subject: Re: ReadKey like Function in C Message-ID: <5717@ficc.uu.net> Date: 16 Aug 89 15:17:07 GMT References: <148@trigon.UUCP> <207600029@s.cs.uiuc.edu> <941@lakesys.UUCP> <2851@ssc-vax.UUCP> Organization: Xenix Support, FICC Lines: 14 In article <2851@ssc-vax.UUCP>, leea@ssc-vax.UUCP (Lee Carver) writes: > 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. Well, I'd personally prefer a function that would return the number of characters available to read. That would have more meaningful semantics for files, and also allow more efficient I/O under UNIX. -- Peter da Silva, Xenix Support, Ferranti International Controls Corporation. Business: peter@ficc.uu.net, +1 713 274 5180. | "The sentence I am now Personal: peter@sugar.hackercorp.com. `-_-' | writing is the sentence Quote: Have you hugged your wolf today? 'U` | you are now reading"