Purpose |
Set the foreground and background colors when displaying text in the active console page. |
|||||||||||||||||||||||||||||||||||
Syntax |
COLOR [foreground], [background] [, count] |
|||||||||||||||||||||||||||||||||||
Remarks |
foreground
is an
If either expression is out of range or missing, that value is left unchanged. Count is optional, and if included, causes the color attribute to be applied immediately to that number of character cells, starting at the current caret location. The caret is not moved, and the underlying characters are not changed. Color attribute code table
|
|||||||||||||||||||||||||||||||||||
Restrictions |
The console window does not support flashing text. | |||||||||||||||||||||||||||||||||||
See also |
CLS, PAGE, PAGEACTIVE, PAGEVISIBLE, PCOPY, PRINT, SCREENATTR | |||||||||||||||||||||||||||||||||||
Example |
COLOR ,4 ' set background color to red | |||||||||||||||||||||||||||||||||||
|
|
|