home *** CD-ROM | disk | FTP | other *** search
- #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));
- }
-