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 - scrnbios() set up bios screen driver http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 scrnbios()          Set up BIOS screen driver
------------------------------------------------------------------------------
 Declaration
   screen.hdr

 Syntax
   proc scrnbios extern

 Arguments
   None.

 Return
   None.

 Description
   The scrnbios() procedure causes all Force screen output to be routed
   through BIOS calls, eliminating most problems caused by direct output
   to video hardware that uses non-standard video.

   The Force runtime library contains replaceable drivers for screen and
   keyboard I/O. Force library contains three standard modules for screen
   output: scrndos(), scrnbios() and scrndirect(). The default screen driver
   is scrndirect().

   The screen drivers affect any command that can be sent to an
   alternate file. It does not redirect the output of the say or get
   commands, which have a different output system.

 Example
   #define EXAMPLE_SCREEN
   #include example.hdr

   proc Test_scrnbios
   vardef
      char cAnswer
   enddef
   // To eliminate screen flicker, use BIOS output
   accept "Eliminate screen flicker? (Y/N) " to cAnswer
   if cAnswer $ "Yy"
      scrnbios()
   endif
   endproc

   proc main
   Test_scrnbios()
   endproc

See Also: scrndirect() scrndos() scrndriver()

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