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 Attributes and Values (SCREEN)
◄Contents► ◄Index► ◄Back►
──────────────────────────────────────────────────────────────────────────────
Color Attributes and Values (SCREEN)
■ For various screen modes and display hardware configurations, different
color-attribute and display-color settings exist. The majority of these
configurations are summarized in the following table:
Color Monitor Monochrome Monitor
─────────────────────────────── ─────────────────────────────
Color Default Displayed Default Displayed
Attribute Color Value(a) Color Color Value Color
═══════════════════════════════════════════════════════════════════════════
Screen Modes 0, 7, 8, 9(b), 12, and 13
0 0 Black 0(c) Off
1 1 Blue Underlined(d)
2 2 Green 1(c) On(d)
3 3 Cyan 1(c) On(d)
4 4 Red 1(c) On(d)
5 5 Magenta 1(c) On(d)
6 6 Brown 1(c) On(d)
7 7 White 1(c) On(d)
8 8 Gray 0(c) Off
9 9 Bright Blue High-intensity
underlined
10 10 Bright Green 2(c) High-intensity
11 11 Bright Cyan 2(c) High-intensity
12 12 Bright Red 2(c) High-intensity
13 13 Pink 2(c) High-intensity
14 14 Yellow 2(c) High-intensity
15 15 Bright White 0(c) Off
───────────────────────────────────────────────────────────────────────────
Screen Modes 1 and 9(e)
0 0 Black 0 Off
1 11 Bright Cyan 2 High-intensity
2 13 Pink 2 High-intensity
3 15 Bright White 0 Off-white
───────────────────────────────────────────────────────────────────────────
Screen Modes 2 and 11
0 0 Black 0 Off
1 15 Bright White 0 Off-white
───────────────────────────────────────────────────────────────────────────
(a) EGA color numbers, VGA and MCGA use display-color values that produce
visually equivalent colors
(b) For VGA or EGA with video memory > 64K
(c) Only for mode 0
(d) Off when used for background
(e) EGA with video memory <= 64K
See: ◄Color Attributes and Values (Objects)► ◄COLOR Statement►
◄Graphics Command Summary► ◄PALETTE Statement►