Color

Action: Allows you to specify the color attribute to be used in subsequent display statements.
 
Syntax: COLOR Xx/Yy  
 
Parameters:

X

Foreground color

x

Optional intensity indication

Y

Background color

y

Optional blink indication

Possible values for the foreground and background colors are:

Character

Low intensity

 

High intensity

 

N

Black

 

Dark grey

 

B

Dark blue

 

Light blue

 

G

Dark green

 

Light green

 

C

Dark cyan

 

Light cyan

 

R

Dark red

 

Light red

 

M

Magenta

 

Pink

 

Y

Brown

 

Yellow

 

W

Light grey

 

White

 

 

Remarks:

If the foreground color is followed by a plus sign (+), the color is displayed with high intensity. 

Specifying a plus sign (+) with the background color causes the color to be displayed blinking.

To retrieve the current console color setting, use the @COLOR macro.
 

Examples:
COLOR w+/b

; Bright white text on a blue background

COLOR g/r+

; Green text on a blinking red background

$ForeGround = "y+"
$BackGround = "n"
COLOR $ForeGround/$BackGround
 
; Bright yellow text on a black background
$BrBlueOnGreen = "b+/g"
COLOR $BrBlueOnGreen
; Bright blue text on a green background