X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f Message-ID: <20020123090154.12465.qmail@web9105.mail.yahoo.com> Date: Wed, 23 Jan 2002 01:01:54 -0800 (PST) From: ROLAND Subject: kbhit() To: djgpp AT delorie DOT com MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Reply-To: djgpp AT delorie DOT com A few postings ago, Eli told me to use kbhit() to check if the keyboard was hit ('cause the interrupt generated by CTRL-C didn't do the right thing). I inserted this in my code, and now I can indeed quit my program correctly. While testing my program, I found out the program didn't work... Now I have found the error: If i call kbhit() and check if a key has been hit, the program freezes until a key has been hit! Can anyone tell me if there is a way to check if a key has been pressed once in a while (say every 10 sec's) and if not, then just go on executing the code??? Roland __________________________________________________ Do You Yahoo!? Send FREE video emails in Yahoo! Mail! http://promo.yahoo.com/videomail/