home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Liren Large Software Subsidy 7
/
07.iso
/
c
/
c100
/
1.ddi
/
OOPWLD.ZIP
/
SHAPES
/
KEYREAD.CPP
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1990-05-31
|
273 b
|
15 lines
#include <stdio.h>
#include <bios.h>
int main(void)
{
char ch;
while(1) {
printf("Input a character:");
while(!bioskey(1));
int key = bioskey(0);
printf("key = 0x%x\n", key);
if(key == 0x11b) return 0; // escape to quit
}
}