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.
Display Mode Constants
◄Crt Unit► ◄Contents► ◄Index► ◄Back►
CONST
{ display modes }
BW40 = 0; { 40 x 25, Color Adapter, B/W }
CO40 = 1; { 40 x 25, Color Adapter, Color }
BW80 = 2; { 80 x 25, Color Adapter, B/W }
CO80 = 3; { 80 x 25, Color Adapter, Color }
Mono = 7; { 80 x 25, Monochrome Adapter }
Font8x8 = 256; { 43- or 50-line display mode }
{ alternate display mode constants }
C40 = CO40;
C80 = CO80;
Unit: Crt
Context: TextMode
Description
The constants BW40, CO40, BW80, and CO80 set modes for CGA/EGA/VGA
color displays. The Mono constant sets monochrome display mode for
MDA or Hercules. This mode can also be used on an EGA or VGA, if a
monochrome monitor is present.
Add the Font8x8 constant to CO80 to switch away from 25-line mode.
The setting causes an EGA to display text in 43-line mode, and a
VGA to display text in 50-line mode.