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 - clear clear the screen http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 clear               Clear the screen
------------------------------------------------------------------------------
 Syntax
   clear

 Arguments
   None.

 Description
   The clear command clears the screen filling it with spaces and the current
   standard color attribute contained in __syscolor[ CLR_STD ].

   clear does not go through the DOS I/O system. This means that the output
   of the clear command can only be redirected by the scrnbios() and the
   scrndirect() procedures.

   Different from other xBase products, the clear command in Force does not
   clear pending gets, so you should use use the clear gets command for that
   purpose.

   clear does not respect the status of the set console flag.

 Example
   #define EXAMPLE_SCREEN
   #include example.hdr

   proc Test_clear
   ? "Hello world"             // print some text, then clear the screen
   wait
   clear
   ? "Hello again"
   wait
   
   /*
   Because the clear command is independent of the display I/O systems, the
   set console flag is ignored
   */
   set console off
   clear                       // the screen is still cleared.
   wait                        // but this is not visible
   endproc

   proc main
   Test_clear()
   endproc

See Also: @ clear set color to set console

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