Important Notice
The pages on this site contain documentation for very old MS-DOS software,
purely for historical purposes.
If you're looking for up-to-date documentation, particularly for programming,
you should not rely on the information found here, as it will be woefully
out of date.
COLOR Statement QuickSCREEN
◄QuickSCREEN► ◄Details► ◄Example► ◄Contents► ◄Index►
──────────────────────────────────────────────────────────────────────────────
COLOR - a graphics statement that selects display colors
SCREEN Mode 0 Syntax: COLOR [foreground][,[background][,border]]
■ foreground is the text color (range = 0-31, with 16-31 blinking)
■ background is the screen color (range = 0-7)
■ border is the color surrounding the screen (range = 0-15)
0 = black 4 = red 8 = grey 12 = light red
1 = blue 5 = magenta 9 = light blue 13 = light magenta
2 = green 6 = brown 10 = light green 14 = yellow
3 = cyan 7 = white 11 = light cyan 15 = bright white
SCREEN Mode 1 Syntax: COLOR [background][,palette]
■ background is the screen color (range = 0-15)
■ palette is a three-color palette (range = 0-1)
0 = green, red, and brown 1 = cyan, magenta, and bright white
SCREEN Modes 7-10 Syntax: COLOR [foreground][,background]
■ foreground is the line-drawing color (range = 0-15, except in Mode 10)
■ background is the screen color (ranges vary)
SCREEN Modes 11-13 Syntax: COLOR [foreground]
■ foreground is the line-drawing color (ranges vary)
See Also ◄SCREEN► - to see how the combination of mode set by the SCREEN
statement, the graphics adapter, and the display
determine available color ranges.
◄PALETTE► - to see how to use color attribute numbers in screen
modes 7-10, 12, and 13.