Lines: 48 X-Admin: news AT aol DOT com From: sterten AT aol DOT com (Sterten) Newsgroups: comp.os.msdos.djgpp Date: 12 Aug 2003 16:34:04 GMT References: Organization: AOL Bertelsmann Online GmbH & Co. KG http://www.germany.aol.com Subject: Re: ATT assembler question Message-ID: <20030812123404.00947.00000307@mb-m11.aol.com> To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com 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 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