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 - setcolorto() set display colors using color string http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 setcolorto()        Set display colors using color string
------------------------------------------------------------------------------
 Declaration
   color.hdr

 Syntax
   proc setcolorto extern
   param const charg cColorString

 Arguments
   cColorString is a string specifying the display colors.

 Return
   None.

 Description
   The setcolorto() function is used to set the color attributes for standard
   display, enhanced display, and for the scoreboard indicators. It performs
   identically to the set color to command.

   If the procedure is called with an empty string, it resets the colors to
   their default values.

 Example
   #define EXAMPLE_SCREEN
   #include example.hdr

   vardef sfar
      char( 20 ) cName := "Roberta"
   enddef
   
   proc Test_setcolorto
   clear
   ? "Hello"                   // default color
   set color to "BG/N, R/W, G"
   set scoreboard on
   ? "Hello again"             // cyan on black
   @ 4, 0 get cName // this field is red on white with green scoreboard
   read
   endproc

   proc main
   Test_setcolorto()
   endproc

See Also: Color string table set color to

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