QBasic and VBDOS Color Attributes and Values
At a Glance
For various screen modes and display hardware configurations, different attribute and color settings exist.
The majority of these attribute and color configurations are summarized in the tables below.
Worth knowing
Useful and cross-version information about the programming environments of QBasic, QuickBasic and Visual Basic for DOS.
| Color monitor | Monochrome monitor |
Color attribute | Default color value1 | Displayed color | Default color value | Displayed color |
SCREEN Modes 0, 7, 8, 92, 12, and 13 |
0 | 0 | Black | 03 | off |
1 | 1 | Blue | | Underlined4 |
2 | 2 | Green | 13 | On4 |
3 | 3 | Cyan | 13 | On4 |
4 | 4 | Red | 13 | On4 |
5 | 5 | Magenta | 13 | On4 |
6 | 6 | Brown | 13 | On4 |
7 | 7 | White | 13 | On4 |
8 | 8 | Gray | 03 | Off |
9 | 9 | Light Blue | | High-intensity Underlined |
10 | 10 | Light green | 23 | High-intensity |
11 | 11 | Light cyan | 23 | High-intensity |
12 | 12 | Light red | 23 | High-intensity |
13 | 13 | Light magenta | 23 | High-intensity |
14 | 14 | Yellow | 23 | High-intensity |
15 | 15 | High-intensity white | 03 | Off |
SCREEN Modes 1 and 95 |
0 | 0 | Black | 0 | Off |
1 | 11 | Light cyan | 2 | High-intensity |
2 | 13 | Light magenta | 2 | High-intensity |
3 | 15 | High-intensity white | 0 | Off white |
SCREEN Modes 2 and 11 |
0 | 0 | Black | 0 | Off |
1 | 15 | High-intensity white | 0 | Off white |
- EGA color numbers. VGA and MCGA use display-color values that produce visually equivalent colors.
- For VGA or EGA with video memory > 64K.
- Only for mode 0.
- Off when used for background.
- EGA with video memory <= 64K.
|