home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DP Tool Club 21
/
CD_ASCQ_21_040595.iso
/
dos
/
prg
/
c
/
freedos3
/
source
/
jh_utils
/
bioskey.c
next >
Wrap
C/C++ Source or Header
|
1995-01-07
|
416b
|
19 lines
#include <bios.h>
/*************************************************************************
* This function waits for a key to be pressed at the keyboard using a
* direct BIOS call. I use Microsoft Quick-C.
* maintainer: James Hall
*/
unsigned
bioskey (void)
{
/* Get the next keypress */
while (_bios_keybrd (_KEYBRD_READY))
_bios_keybrd (_KEYBRD_READ);
return (_bios_keybrd (_KEYBRD_READ));
}