home *** CD-ROM | disk | FTP | other *** search
- /**
- *
- * BKEYBD.H Header file for BIOS keyboard functions for C TOOLS PLUS
- *
- * Version 3.0 (C)Copyright Blaise Computing Inc. 1986
- *
- **/
-
- #ifndef DEF_BKEYBD /* Prevent redefinition. */
-
- /* Symbols for KBSTUFF and KBPLACE */
-
- #define KB_HEAD 1
- #define KB_TAIL 0
-
- struct kstatus /* Keyboard status structure */
- {
- unsigned right_shift : 1; /* Right Shift key depressed */
- unsigned left_shift : 1; /* Left Shift key depressed */
- unsigned ctrl_shift : 1; /* Ctrl key depressed */
- unsigned alt_shift : 1; /* Alt key depressed */
- unsigned scroll_state : 1; /* Scroll Lock has been toggled */
- unsigned num_state : 1; /* Num Lock has been toggled */
- unsigned caps_state : 1; /* Caps Lock has been toggled */
- unsigned ins_state : 1; /* Insert state is active */
- /* */
- unsigned filler : 8; /* Filler for word alignment */
- };
- #define KEYSTATUS struct kstatus
-
- /* Function declarations */
-
- int kbready(char *,int *); /* Check for a keystroke (do */
- /* not wait). */
- /* */
- int kbin(int *); /* Await keystroke. */
- /* */
- int kbflush(void); /* Flush keyboard buffer. */
- /* */
- int kbshift(KEYSTATUS *); /* Return the keyboard shift */
- /* status. */
- int kbqueue(int *); /* Total and remaining space */
- /* in keyboard queue. */
- /* */
- char *kbstuff(int,char *); /* Stuff string into keyboard */
- /* queue. */
- /* */
- int kbplace(int,char,char); /* Place one keystroke into */
- /* keyboard queue. */
-
-
- #define DEF_BKEYBD 1 /* Prevent second reading of */
- /* these definitions. */
-
- #endif /* Ends "#ifndef DEF_BKEYBD" */