From: Damian Yerrick Newsgroups: comp.os.msdos.djgpp Subject: Re: using keyboard not line buffered Organization: Pin Eight Software http://pineight.8m.com/ Message-ID: <16lvdso48gb5vpg1aul4smavriat5hnt01@4ax.com> References: <200003270139 DOT GAA00835 AT midpec DOT com> <27uudsce1g54pujkb3a7ajam89n1g7d0h8 AT 4ax DOT com> X-Newsreader: Forte Agent 1.7/32.534 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 24 X-Trace: /K0ZEEgwgxCXPQC/sTaYwhlEpVeqUk+wdALsjUlCo0M0l7vEzW+hTNL//hVmESMyeYrjc929EW0Y!EVZ05EaiOWTBuwPD77QXZnr2LyhD+b5tW+VVWEnrNxylwHqOwciaIMbGlt6rxy/McVhPC4x3Z31u!3Y+xaVM= X-Complaints-To: abuse AT gte DOT net X-Abuse-Info: Please be sure to forward a copy of ALL headers X-Abuse-Info: Otherwise we will be unable to process your complaint properly NNTP-Posting-Date: Mon, 27 Mar 2000 21:39:59 GMT Distribution: world Date: Mon, 27 Mar 2000 21:39:59 GMT To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com On Mon, 27 Mar 2000 13:07:40 GMT, beyonddeath wrote: >Thanks, i found libkb which seems to work for what i need, getch on my >system seems to wait for me to enter a key each time through the loop >which is not what i need it for. If you use getch(), then kbhit() will tell you if a key has been pressed or not. if(kbhit()) { foo = getch(); if(foo == 0) // extended keys foo = getch() << 8; } -- Damian Yerrick "I refuse to listen to those who refuse to listen to reason." See the whole sig: http://www.rose-hulman.edu/~yerricde/sig.html This is McAfee VirusScan. Add these two lines to your signature to prevent the spread of signature viruses. http://www.mcafee.com/