WARNING: No general registers are preserved.
Change the current video mode and re-intializes the CRT subsystem.
If Mouse support has not been disabled with the %define NO_MICE
conditional define and a mouse
is present. The mouse will be reset and hidden. A call to
MouseShow will be needed to make the mouse visible
again.
Common NON-VESA modes:
| 0x0000 | 40x25 Grayscale |
| 0x0001 | 40x25 Color |
| 0x0002 | 80x25 Grayscale |
| 0x0003 | 80x25 Color |
| 0x0007 | 80x25 Monochrome |
| 0x0054 | 132x43 Color under the default configuration of DOSBox |
| 0x0055 | 132x25 Color under the default configuration of DOSBox |
For other possible text modes below 0x0100 on real hardware, consult the video mode table in Ralf Brown's Interrupt List.
Examples:
TextMode bx
TextMode 3
TextMode 0x010c
TextMode [USER_MODE]
See also: GetTextMode, ResetMode and RequireTextMode