Go to the first, previous, next, last section, table of contents.
#include <conio.h> void textmode(int _mode);
Sets the text mode of the screen. _mode is one of the following:
LASTMODE
textmode()
.
BW40
C40
BW80
C80
MONO
C4350
See section _set_screen_lines, for a more versatile method of setting text screen dimensions.
Portability
not ANSI, not POSIX
It's not safe to call this function inside static constructors, because conio needs to be initialized, and its initialization is done by a static constructor. Since you don't have any control on the order in which static constructors are called (it's entirely up to the linker), you could have problems.
If you can detect the situation when one of the conio functions is
called for the very first time since program start, you could work
around this problem by calling the gppconio_init
function
manually (this is the function called by a static constructor).
Go to the first, previous, next, last section, table of contents.