Mail Archives: djgpp/2003/08/12/12:45:51
Hans-Bernhard Broeker 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.
and why is this better ? I run this from batch, so it's easy and fast.
And I needed keyword-search, not 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?
well, how could I have known it ? Hinterher ist man immer klueger ;-)
>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.
you can't read all the docs. The problem is always to find what
you need quickly , while ignoring the other stuff.
>> >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.
don't know what you mean. It's just what I want and it works fine
and you said it does what the asm-snippet does, and it does indeed,
and I'm happy with it.
As soon as you press esc , the program terminates.
No matter what other keys were pressed before.
Guenter
- Raw text -