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

 Syntax
   proc scrndos extern

 Arguments
   None.

 Return
   None.

 Description
   The scrndos() procedure eliminates screen flicker and guarantees hardware
   compatibility by causing Force console output to use DOS calls. Using the
   DOS output system also allows redirection of the DOS command line and use
   of piping techniques.

   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_scrndos
   // default screen driver is the direct screen driver
   ? "This line only appears on screen"
   scrndos()
   ? "This output is redirectable to a file when invoked"
   ? "like test.exe > output.txt"
   wait
   scrndirect()
   @ row() + 3, col()                   // correct cursor position
   ? "This line will again not go to the redirected output"
   endproc

   proc main
   Test_scrndos()
   endproc

See Also: scrnbios() scrndirect() scrndriver()

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