qc.hlp (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
_bios_keybrd
 Summary Example                         Up Contents Index Back
────────────────────────────────────────────────────────────────────────────
 
     The _bios_keybrd routine uses INT 0x16 to access the keyboard
     services. The <service> argument can be any of the following
     manifest constants:
 
     _KEYBRD_READ            _NKEYBRD_READ
     _KEYBRD_READY           _NKEYBRD_READY
     _KEYBRD_SHIFTSTATUS     _NKEYBRD_SHIFTSTATUS
 
     Return Value
 
     With the ...READ and ...SHIFTSTATUS arguments, the _bios_keybrd
     function returns the contents of the AX register after the BIOS
     call.
 
     With the ...READY argument, _bios_keybrd returns 0 if there is no
     key. If there is a key, _bios_keybrd returns the key waiting to be
     read (i.e., the same value as _KEYBRD_READ).
 
     With the ...READ and ...READY arguments, the _bios_keybrd function
     returns -1 if CTRL+BREAK has been pressed and is the next
     keystroke to be read.
                                    -♦-