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

 Arguments
   uTop is the top row of the box.

   uLeft is the leftmost column of the box.

   uBottom is the bottom row of the box.

   uRight is the rightmost column of the box.

 Description
   The @ to command draws a box within the specified screen area.

   The default box frame is single line. Specifying the double clause
   results in a double line frame. Specifying the clear clause clears the
   specified area without drawing any frame.

   Screen output via the @ to command occurs 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_813
   __syscolor[ CLR_STD ] := GREEN_BLACK
   @  3,  3 to 10, 20                      // draw a single box on the screen
   __syscolor[ CLR_STD ] := CYAN_BLACK
   @ 11, 33 to 15, 45 double               // draw a double box on the screen
   __syscolor[ CLR_STD ] := RED_BLACK
   @ 12, 35 to 14, 40 clear                // clear a portion of the screen
   endproc

   proc main
   Test_813()
   endproc

See Also: @ clear box()

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