Format
SCREEN number1
Description
This statement will transfer the computer between text mode and graphics
modes. Number1 must be an integer constant with a value of 0, 1, 2, 7, 9,
or 13. These modes are described in the table below. The "Mode" column
identifies the value of number1 to specify on the SCREEN command to select
that graphics mode. The "Graphics Resolution" column has three numbers.
The first identifies the number of rows of pixels supported in this mode.
The second number identifies the number of columns. The third number
identifies the number of colors which may displayed on screen at one time.
The numbers in the "Text Resolution" column tell you how many rows, columns
and colors you may display on the screen when displaying text. The
adapters column identifies the type of graphics adapter required to use
this mode.
Mode Graphics Resolution Text Resolution Adapters
----- ------------------- --------------- -------
0 None 25 x 80 x 16 Any Adapter
1 200 x 320 x 4 25 x 40 x 4 CGA/EGA/VGA
2 200 x 640 x 2 25 x 80 x 2 CGA/EGA/VGA
7 200 x 320 x 16 25 x 40 x 16 EGA/VGA
9 350 x 640 x 16 25 x 80 x 16 EGA/VGA
13 200 x 320 x 256 25 x 40 x 16 VGA
Example
SCREEN 13
After execution of this statement, the PC will be in Graphics Mode 13 which
will allow you to display 200 rows by 320 columns of pixels in 256
different colors. Up to 25 rows and 80 columns of text can be displayed in
up to 256 colors. And finally, mode 13 requires a VGA Graphics Card.
Comments
Any program which uses the SCREEN command should issue a "SCREEN 0" command
before terminating. Otherwise, the screen will not be reset properly when
you return to DOS.
See Also
|