From: adalee AT sendit DOT sendit DOT nodak DOT edu (Adam W Lee) Newsgroups: rec.games.programmer,alt.msdos.programmer,comp.os.msdos.djgpp Subject: Re: Text Mode Program: Help Please.. Followup-To: rec.games.programmer,alt.msdos.programmer,comp.os.msdos.djgpp Date: 8 Sep 1997 20:37:46 GMT Organization: SENDIT - North Dakota's Educational Network Lines: 20 Message-ID: <5v1nmq$g9b$3@news.sendit.nodak.edu> References: <5uv4i5$t3u AT bgtnsc02 DOT worldnet DOT att DOT net> <3413C028 DOT 159D AT juno DOT com> <3414171d DOT 1741671 AT news DOT softcom DOT net> NNTP-Posting-Host: sendit-2.sendit.nodak.edu To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk : I have not found this to be a problem; in both DJGPP and TC++, getch() : seems to remove one character from the keyboard buffer and thereby : turns off kbhit(). There may well be trouble if one /holds down/ a : key, which is why I usually put a loop like this That isn't the problem, though. The problem is that the test only determines the execution of one line. Therefore, if you press up once it'll execute ad infinitum while no keys are being pressed since the if only traps the assignment of control... This would make the code think that control is being repeatedly set hence his continuous line of 0's. -- +--- -- -- - - | [pHiXx/VorteX] : phixx AT usa DOT net : .