Mail Archives: djgpp/2003/08/12/11:15:05
Sterten <sterten AT aol DOT com> wrote:
> I went to the /info directory, put everything there in one big
> file and searched this file for keywords.
That's an utterly silly way of using the Info pages. Use a proper
info reader instead, and you'll get to actually use indices and
structured lookup.
> No referrence to kbhit from any of the 4 other mentioned functions.
There may be no cross-link to it, but it *is* mentioned on the conio
functional category page, see?
The real problem was that you obviously read *none* of the docs before
(or you would have found out the details of _bioskey), not that you
read them but didn't find the relevant parts.
> >So what? Did it really not occur to you that you can't have it both
> >ways --- being informed about new keypresses, but still ignoring keys
> >pressed a while ago?
> The program below seems to do exactly that :
It doesn't. If you use it as is, it ignores no keypress. It doesn't
check what key was pressed, either. I.e. if there are 5 old
key-presses sitting in the queue, the next 5 invocations of this if()
construct _will_ execute the body, regardless of whether the pressed
key was <ESC> or something else, and regardless of when those key
presses happened.
--
Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de)
Even if all the snow were burnt, ashes would remain.
- Raw text -