Set Mode (SM)

Esc [=#h
Esc [=h
Esc [=0h
Esc [?7h

Invokes the screen width or type specified by the parameter.

Parameter Meaning
0 Text 40x25 black and white
1 Text 40x25 color
2 Text 80x25 black and white
3 Text 80x25 color
4 Graphics 320x200 color
5 Graphics 320x200 black and white
6 Graphics 640x200 black and white
7 Wrap at end-of-line (typing past
end-of-line results in new line)