This escape sets the foreground and background colors used to print subsequent text. On color printers, the colors will match exactly. For most monochrome printers, Windows will convert colors to an appropriately adjusted grayscale.
Parameter |
Value or Description |
Lead-in |
<ESC>c |
Sequence |
Red FG, Green FG, Blue FG, Red BG, Green BG, Blue BG |
Termination |
null |
Each element in "sequence" is specified in the 0-255 range
Example
Sets text color to white on a blue background:
PRINT CHR$(27);"c";
PRINT "255,255,255"; | ! white foreground |
PRINT "0,0,255";CHR$(0); | ! blue background |