Mail Archives: djgpp/1999/04/23/10:05:30
Message-ID: | <37207CDC.B71F192B@mdh.se>
|
Date: | Fri, 23 Apr 1999 15:59:56 +0200
|
From: | Dan Levin <dan DOT levin AT mdh DOT se>
|
X-Mailer: | Mozilla 4.5 [en] (Win98; I)
|
X-Accept-Language: | en
|
MIME-Version: | 1.0
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | kbpeek() in DJGPP - C version only..
|
NNTP-Posting-Host: | dln.idt.mdh.se
|
Lines: | 18
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
Reply-To: | djgpp AT delorie DOT com
|
Hello !
I wonder if anybody has got a code snippet for "peeking" into the
keyboard buffer, written in C (C-style only, no iostream...) ? I've done
some coding myself - but I'm not satisfied with it. I'd like a function,
say:
int kbpeek();
that returns the ASCII code of the top charcter in the kb buffer. The
more ANSI C, the better - but I suppose you'll have to go down to
__dos_int() calls, at the least...or is assembler the only solution...?
Thanks in advance - any contribution is welcome !
/Dan
- Raw text -