bas7advr.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.
SCREEN Statement - Attributes and Colors
                                                 Contents  Index  Back
──────────────────────────────────────────────────────────────────────────────
Attributes and Colors
 
For various screen modes and display hardware configurations, different
color attribute and display color settings exist. For a discussion of color
attribute and display color, see PALETTE, PALETTE USING Statements Details.
See Screen Mode Summary for a list of the valid mode% numbers.
See Adapters and Displays for the valid ranges for apage% and vpage% for
each graphics adapter. The majority of these color-attribute and
display-color configurations are summarized in the tables below.
 
Color Attributes and Default Display Colors for SCREEN Modes 1 and 9(a)
 
            Color monitor                   Monochrome monitor
            ──────────────────────────      ──────────────────────────────
Color       Default Display  Displayed      Default Display  Displayed
attribute   Color Value(b)   Color          Color Value(c)   Color
═════════   ═══════════════════════════     ══════════════════════════════
0            0               Black          0                Off
1           11               Light cyan     2                High intensity
2           13               Light magenta  2                High intensity
3           15               High-          0                Off white
                             intensity
                             white
───────────────────────────────────────────────────────────────────────────
  (a)  EGA with video memory <= 64K.
  (b)  EGA display colors. VGA and MCGA use display-color values that
       produce visually equivalent colors.
  (c)  Only for mode 0 monochrome.
 
Color Attributes and Default Display Colors for SCREEN Modes 2 and 11
 
            Color monitor                   Monochrome monitor
            ──────────────────────────      ──────────────────────────────
Color       Default display  Displayed      Default display  Displayed
attribute   color value(1)   color          color value(2)   color
═════════   ═══════════════════════════     ══════════════════════════════
0            0               Black           0               Off
1           15               High-           0               Off white
                             intensity
                             white
───────────────────────────────────────────────────────────────────────────
  (1)  EGA color numbers. VGA and MCGA use display-color values that
       produce visually equivalent colors.
  (2)  Only for mode 0 monochrome.
 
Color Attributes and Default Display Colors for SCREEN Modes 0, 7, 8, 9(a),
12, and 13
 
            Color Monitor                   Monochrome monitor
            ──────────────────────────      ──────────────────────────────
Color       Default display  Displayed      Default display  Displayed
attribute   color value      color          color value      color
═════════   ═══════════════════════════     ══════════════════════════════
 0           0               Black           0               Off
 1           1               Blue                            Underlined(d)
 2           2               Green           1               On(d)
 3           3               Cyan            1               On(d)
 4           4               Red             1               On(d)
 5           5               Magenta         1               On(d)
 6           6               Brown           1               On(d)
 7           7               White           1               On(d)
 8           8               Gray            0               Off
 9           9               Light Blue                      High intensity
                                                             Underlined
10          10               Light green     2               High intensity
11          11               Light cyan      2               High intensity
12          12               Light red       2               High intensity
13          13               Light magenta   2               High intensity
14          14               Yellow          2               High intensity
15          15               High-intensity  0               Off
                             white
───────────────────────────────────────────────────────────────────────────
  (a)   For VGA. Also for EGA with video memory > 64K.
  (b)   EGA color numbers. VGA and MCGA use display-color values that
        produce visually equivalent colors.
  (c)   Only for mode 0 monochrome.
  (d)   Off when used for background.
 
See Also    SCREEN Statement