Specifying foreground color and background color separately
When an color value is used with a property that defines either the foreground color or the background color, the value can be only 0 to 15 and the corresponding color is applied to foreground or background. The table below shows the possible values for BACKGROUND-COLOR and FOREGROUND-COLOR properties.
0 Black
1 Blue
2 Green
3 Cyan
4 Red
5 Magenta
6 Brown
7 White
8 Dark Gray
9 Bright Blue
10 Bright Green
11 Bright Cyan
12 Bright Red
13 Bright Magenta
14 Yellow
15 Bright White
Brightness can be also affected by the following clauses:
BACKGROUND-HIGH
BACKGROUND-LOW
BACKGROUND-STANDARD
HIGHLIGHT
LOWLIGHT
STANDARD
For example, a "BACKGROUND-COLOR 4 BACKGROUND-HIGH" is equivalent to "BACKGROUND-COLOR 12". Both syntaxes shows an high intensity red background.
When the REVERSE-VIDEO phrase is specified, background and foreground colors are swapped.
When the SAME phrase is specified, the whole screen item for which it is specified is displayed with the same colors and attributes of the screen position occupied by its first character.
This kind of color value is suitable for
the BACKGROUND-COLOR and FOREGROUND-COLOR clauses of the DISPLAY statement,
the Background-Color and Foreground-Color properties of each control,
the following special properties:
When these colors are set to 0, the default color is restored.