COLOR

Top  Previous  Next

Syntax

COLOR fg as INT, bg as INT

Description

Changes the text color of a console window.

Parameters

fg - The text color. An integer value from 0 to 15

bg - The fill color for the text. An integer value from 0 to 15

Return value

None

Remarks

The text console must have been opened with OPENCONSOLE before this command is used.

Color table:

COLOR number

Color Produced

0

BLACK

1

BLUE

2

GREEN

3

CYAN

4

RED

5

MAGENTA

6

BROWN

7

WHITE

8

GRAY

9

LIGHT BLUE

10

LIGHT GREEN

11

LIGHT CYAN

12

LIGHT RED

13

LIGHT MAGENTA

14

YELLOW

15

HIGH INTENSITY WHITE

Example usage

OPENCONSOLE
COLOR 9,0
PRINT "Light blue text on black background"