Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- FUNCky - <b>name:</b> <b>setattr() - set screen attributes</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
  Name:     setattr() - set screen attributes
  Usage:    setattr(<row>,<col>,<row>,<col>,[<attrib>],[<char>])
  Params:   integer <row> - top row
            integer <col> - left column
            integer <row> - bottom row
            integer <col. - right column

            integer <attrib> - the attribute to set. Optional, if
            left off or -1 the current Clipper standard foreground
            color is used.

            char <char> an optional fill character. This character
            will be used to clear the screen within the row/col
            coordinates to the specified character. Useful for
            creating textured backgrounds.

  Returns:  nothing

 ---------------------------------- Example ---------------------------------

                 setattr(0,0,maxrow(), maxcol(), 23, chr(177))
                 * sets the entire screen to a textured
                 * blue and white background

                 setattr(10,10,20,50,36)
                 * sets the screen attributes at 10,10,20,50
                 * to red on green without clearing the characters
                 * at those coordinates

  Note:     The cls() and scroll() functions can also set the
            character with an attribute. If you do not need the
            ability to change attributes of existing characters
            on screen, using cls() or scroll() can result in
            reduced overhead.


See Also: scroll() shift() savescreen() initscreen() cls()

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