Note | This command is defined in a header file and will be preprocessed by the X# preprocessor to a function call. If you disable the standard header (-nostddefs) files then this command will not be available. If you tell the compiler to use a different standard header file (-stddef ) then this command may also be not available |
Change the setting that determines the current color for the terminal window.
SET COLOR | COLOUR TO [<xcColorString>]
SET COLOR is functionally equivalent to SetColor(). SET COLOR TO with no arguments is the same as SetColor(NULL_STRING), returning to the default color settings.
This example uses the unselected setting to make the current GET red on white while the rest are black on white:
FUNCTION Start AS VOID
SET COLOR TO gr+/B // Yellow on Blue
CLEAR SCREEN
? "Hello world"
XSharp.RT.DLL
SetColor()