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 a screen area http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 @ clear             Clear a screen area
------------------------------------------------------------------------------
 Syntax
   @ uTop, uLeft clear [to uBottom, uRight]

 Arguments
   uTop is the top row of the screen portion to be cleared.

   uLeft is the leftmost column of the screen portion to be cleared.

   uBottom is the bottom row of the screen portion to be cleared.

   uRight is the rightmost column of the screen portion to be cleared.

 Description
   The @ clear command clears a portion of the screen. If the
   uBottom and uRight arguments are not used, then the screen is cleared
   to the default screen coordinates 24 and 79.

   The screen is cleared using the current setting of the
   __syscolor[ CLR_STD ] system color attribute.

 Example
   #define EXAMPLE_SCREEN
   #include example.hdr

   // box and clear commands use the background portion of the color setting
   
   proc Test_693
   __syscolor[ CLR_STD ] := GREEN_BLACK
   @ 3, 3 to 10, 20 double                 //  draw a box on the screen
   @ 3, 3 clear to 10, 20                  // clear the same box
   __syscolor[ CLR_STD ] := CYAN_BLACK
   @ 10, 10 clear                          // clear a portion of the screen
   endproc

   proc main
   Test_693()
   endproc

See Also: clear

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