COLOR

Action

Sets 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

 

Colour codes:

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.

 

Examples

COLOR w+/b

Bright white text on a blue background

COLOR g/r

Green text on a red background

$ForeGround = "y+"

$BackGround = "n"

COLOR $ForeGround/$BackGround

 

 

Bright yellow text on a black background

$NewColor = "b+/g"

COLOR $NewColor

 

Bright blue text on a green background