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:45:07 +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: | <1659-Tue20Jul2004214506+0300-eliz@gnu.org> |
X-Mailer: | emacs 21.3.50 (via feedmail 8 I) and Blat ver 1.8.9 |
In-reply-to: | <2m40mjFhp3nlU1@uni-berlin.de> (message from Martin Ambuhl on |
Tue, 20 Jul 2004 03:42:09 -0400) | |
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> <2m40mjFhp3nlU1 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: Martin Ambuhl <mambuhl AT earthlink DOT net> > Newsgroups: comp.os.msdos.djgpp > Date: Tue, 20 Jul 2004 03:42:09 -0400 > > *Maybe* it's because when !kbhit(), you don't call getch() but you do > store a value into *key. I think this does not happen because if `kbhit' returns zero, there's no keypress in the BIOS queue, and `bioskey' then gets stuck until a key is pressed, at which time it returns that key. So I think what you describe could only happen in the (extremely rare) case where a key is pressed between the time the BIOS call in `kbhit' returns and the time `bioskey' is called.
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |