Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Force 4.0 Reference - keybios() set up bios keyboard driver http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 keybios()           Set up BIOS keyboard driver
------------------------------------------------------------------------------
 Declaration
   io.hdr

 Syntax
   proc keybios extern

 Arguments
   None.

 Return
   None.

 Description
   The keybios() procedure initializes the Force runtime library routines to
   use the BIOS calls to get keyboard input. The BIOS keyboard driver is the
   default system for Force.

   The Force library contains replaceable drivers for screen and keyboard
   I/O. The keybios() function retrieves keys from BIO,S while keydos()
   retrieves keys from DOS. Use keybios() when speed, size and dBase
   compatibility is important. Use keydos() when a program requires DOS
   redirection or piping.

 Example
   #define EXAMPLE_IO
   #include example.hdr

   proc Test_keybios
   keydos()         // set keyboard input to go through BIOS
   // processing...
   keybios()        // reset to default (BIOS) keyboard driver
   endproc

   proc main
   Test_keybios()
   endproc

See Also: keydos()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson