| delorie.com/archives/browse.cgi | search |
| X-Authentication-Warning: | delorie.com: mail set sender to djgpp-bounces using -f |
| Date: | Tue, 20 Jul 2004 21:40:58 +0200 |
| From: | "Eli Zaretskii" <eliz AT gnu DOT org> |
| Sender: | halo1 AT zahav DOT net DOT il |
| To: | djgpp AT delorie DOT com |
| Message-Id: | <1438-Tue20Jul2004214057+0300-eliz@gnu.org> |
| X-Mailer: | emacs 21.3.50 (via feedmail 8 I) and Blat ver 1.8.9 |
| In-reply-to: | <2m3odtFhufc2U1@uni-berlin.de> |
| (fbarbuto2002 DOT no AT w1 DOT ca DOT vip DOT scd DOT yahoo DOT com) | |
| Subject: | Re: Function kbhit()? |
| References: | <2m3hjoFibqajU1 AT uni-berlin DOT de> <7494-Tue20Jul2004073651+0300-eliz AT gnu DOT org> <2m3odtFhufc2U1 AT uni-berlin DOT de> |
| Reply-To: | djgpp AT delorie DOT com |
| Errors-To: | nobody AT delorie DOT com |
| X-Mailing-List: | djgpp AT delorie DOT com |
| X-Unsubscribes-To: | listserv AT delorie DOT com |
> From: "Fausto Arinos de A. Barbuto" <fbarbuto2002 DOT no AT w1 DOT ca DOT vip DOT scd DOT yahoo DOT com>
> Newsgroups: comp.os.msdos.djgpp
> Date: Mon, 19 Jul 2004 23:21:00 -0600
>
> void check_event(int *key)
> {
> while (kbhit()) getch();
> *key = bioskey(0);
> }
If this function is entered when a keypress is waiting in the BIOS
keyboard queue, then `getch' will eat up that keypress and `bioskey'
will wait until the next keypress and return that. Does this explain
the misbehavior you see (which you still didn't describe)?
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |