- 4.8.2.21. -
Table of Contents
4. Standard Units
4.8. CRT - Keyboard and monitor control routines
4.8.2. CRT Unit Procedures and Functions
4.8.2.21. TextMode procedure
4.8.2.21. TextMode procedure
Targets: MS-DOS, OS/2, Win32 console
CRT Unit
Selects a specific text mode.
Declaration:
procedure TextMode(Mode: Integer);
Remarks:
When TextMode is called, the current window is reset
to the entire screen,
DirectVideo
is set to True, CheckSnow
is set to True if a color mode was selected,
the current text attribute is reset to normal corresponding
to a call to NormVideo,
and the current video is stored in LastMode.
In addition, LastMode
is initialized at program startup to the then-active video mode.
Specifying TextMode(LastMode) causes the last active text mode
to be re-selected. This is useful when you want
to return to text mode after using a graphics package, such as
Graph unit.
See also:
TextMode Constants
- 4.8.2.21. -