Command SET COLOR Foundation
Defines the default screen colors.
SET COLOR | COLOUR TO ; [ [ <standard>] ; [,<enhanced>] ; [,<border>] ; [,<background>] ; [,<unselected>] ; ] // or character expression in parentheses: SET COLOR | COLOUR TO ( <cColor> )
The command SET COLOR exists only for compatibility reasons and should no longer be used. Instead, the function SetColor(), which can read or redefine the current color setting, should be used.
The command SET COLOR TO defines the list of automatically supported system colors. The list of system colors consists of a character string containing five color values. They must be separated by commas. A color value consists of a pair of colors for the foreground and background color separated from one another by a slash (/). The following letters can be combined to define a color value:
|Color||Color screen||Monochrome screen|
|N | Blank space||Black||Black|
|+||Foreground attribute||Foreground attribute|
|B+||Bright blue||Bright and underscored|
|G+||Bright green||Bright white|
|BG+||Bright cyan||Bright white|
|R+||Bright red||Bright white|
|RB+||Bright magenta||Bright white|
|W+||Bright white||Bright white|
|X||Not visible||Not visible|
|*||Background attribute||Background attribute|
The base colors R, G, B, RB, GR, BG, N and W can be modified by an additional color intensity attribute. The plus sign (+) is the attribute for the foreground color and the asterisk (*) raises the intensity of the background color. Both color attributes are recognized regardless of the position they appear in a color value.
The character string containing the default colors is: "W/N, N/W, N, N, N/W". The five color values in the list are used for output in the following situations:
First color value (standard output)
The first color value (standard) is used with most functions and commands which cause screen output. Those are commands like @...SAY, @...PROMPT and ? or functions like AChoice(), MemoEdit() and QOut().
Second color value (highlighted output)
The second color value (highlighted) is used to highlight the active or selected element in a list or group of equal elements. This occurs in functions like AChoice() or DbEdit() and in commands like MENU TO or READ.
Third color value (screen border)
The third color value specifies the color of the screen border. This color can only be set with specific graphic cards.
Fourth color value
The fourth color value is not supported. It can be activated with the function ColorSelect().
Fifth color value (unselected GETs)
The fifth color value specifies the color of entry fields defined using the command @..SAY..GET. The active GET field is highlighted (second color value) and the other GET fields are displayed with the fifth color value. Output of characters following the SAY portion of this command occurs in the default color (first color value).
If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.