Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Telix/SALT v3.15 & RS-232, Hayes - <b>box</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
  BOX

  .  Summary

  box(int <x>, int <y>, int <x2>, int <y2>, int <style>, int <hollow>,
  int <color>);

  .  Description

  The box function is used to create a box on the screen. The box will
  have an upper left hand corner of <x>,<y> and a lower right hand
  corner of <x2>,<y2>. The box must fit within the confines of the
  screen. <color> is the color to use in drawing the box. If <hollow>
  is a non-zero (TRUE) value, the inside of the box is not cleared.
  <style> selects what kind of box to draw, as follows:

       0    Spaces
       1    Single lines
       2    Double lines
       3    Single vertical lines, double horizontal lines
       4    Double vertical lines, single horizontal lines

  If <style> is any other value, that character is used to construct
  the sides of the box.

  Possible colors are numbered as follows:

                      Black          00
                      Blue           01
                      Green          02
                      Cyan           03
                      Red            04
                      Magenta        05
                      Brown          06
                      Light Grey     07
                      Dark Grey      08
                      Light Blue     09
                      Light Green    10
                      Light Cyan     11
                      Light Red      12
                      Light Magenta  13
                      Yellow         14
                      White          15

  To obtain a color attribute value for a color combination, the for-
  mula is

       color attribute value =

             foreground color value + (16 * background color value)

  Therefore, a Yellow character on a Blue background would have a
  color attribute value of 30 (14 + (16 * 1)).

  .  Return Value

  None.

  .  Example

  box(10, 10, 70, 20, 1, 0, 112);    // draw box in inverse color

See Also: scroll vsavearea vrstrarea color chart

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