qbasic.hlp (Topic list)
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
  Contents  Index  Back
──────────────────────────────────────────────────────────────────────────────
             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                Light Blue                      High-intensity
                                                              Underlined
10           10               Light green       2(c)          High-intensity
11           11               Light cyan        2(c)          High-intensity
12           12               Light red         2(c)          High-intensity
13           13               Light magenta     2(c)          High-intensity
14           14               Yellow            2(c)          High-intensity
15           15               High-intensity    0(c)          Off
                              white
────────────────────────────────────────────────────────────────────────────
SCREEN Modes 1 and 9(e)
 
0            0                Black             0             Off
1            11               Light cyan        2             High-intensity
2            13               Light magenta     2             High-intensity
3            15               High-intensity    0             Off white
                              white
────────────────────────────────────────────────────────────────────────────
SCREEN Modes 2 and 11
0            0                Black             0             Off
1            15               High-intensity    0             Off white
                              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 Also    COLOR    PALETTE, PALETTE USING    SCREEN
            Screen Modes