Format
COLOR number1,number2
Description
This function is used to set the foreground and background screen colors.
The foreground color is specified in number1, the background color in
number2.
Valid Colors |
Foreground |
Background |
Black |
0 |
0 |
Blue |
1 |
1 |
Green |
2 |
2 |
Cyan |
3 |
3 |
Red |
4 |
4 |
Magenta |
5 |
5 |
Brown |
6 |
6 |
White |
7 |
7 |
Dark Gray |
8 |
|
Light Blue |
9 |
|
Light Green |
10 |
|
Light Cyan |
11 |
|
Light Red |
12 |
|
Light Magenta |
13 |
|
Yellow |
14 |
|
Bright White |
15 |
|
Note: Colors 8-15 when specified for background color
result in blinking text.
Example
COLOR 4,8
After execution of this statement, future characters written to the screen
will be Blinking Red on a Black Background.
|