delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/03/27/23:09:08

From: Damian Yerrick <Bullcr_pd_yerrick AT hotmail DOT comRemoveBullcr_p>
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: <fsjsds05n8cfnliaje73ijgt4fc24sojsm AT 4ax DOT com> <200003270139 DOT GAA00835 AT midpec DOT com> <27uudsce1g54pujkb3a7ajam89n1g7d0h8 AT 4ax DOT com>
X-Newsreader: Forte Agent 1.7/32.534
MIME-Version: 1.0
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 <justhunt1234 AT home DOT com>
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019