delorie.com/archives/browse.cgi | search |
From: | Chris Thompson <cdthompson AT juno DOT com> |
Newsgroups: | rec.games.programmer,alt.msdos.programmer,comp.os.msdos.djgpp |
Subject: | Re: Text Mode Program: Help Please.. |
Date: | Mon, 08 Sep 1997 02:06:48 -0700 |
Organization: | Lightman Productions |
Lines: | 13 |
Message-ID: | <3413C028.159D@juno.com> |
References: | <5uv4i5$t3u AT bgtnsc02 DOT worldnet DOT att DOT net> |
Reply-To: | cdthompson AT juno DOT com |
NNTP-Posting-Host: | sl17.burgoyne.com |
Mime-Version: | 1.0 |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Jay Slanker wrote: > > > if(kbhit()) > control=getch(); > This is your problem. Once kbhit() returns true, it'll keep returning true. I'm not sure exactly what resets is, but your best bet is to use the _bios_keybrd() routines to check for a character ready and to read it. Most compilers I've seen have these functions. Chris Thompson cdthompson AT juno DOT com
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |