269 MODE graphics mode Purpose This statement is used to select which display MODE the computer is about to use. Changing MODE s clears the screen. Mode Graphics Colour Text 0 640x256 Two colour display 80x32 text 1 320x256 Four colour display 40x32 text 2 160x256 16 colour display 20x32 text 3 Two colour text only 80x25 text 4 320x256 Two colour display 40x32 text 5 160x256 Four colour display 20x32 text 6 Two colour text only 40x25 text 7 Teletext display 40x25 text MODE 7 uses the Teletext standard display characters. These cannot be changed by the user.
Since these characters differ slightly from the standard ASCII set you will find that a number of characters on the screen do not correspond to those printed on the keys. For example a left hand square bracket will be displayed as an arrow. In MODE s 0 to 6 the character set can be changed by the user. See VDU23 in chapter 34. You cannot change MODE inside a procedure or function. MODE s 128 to 135 are the ‘shadow’ equivalents of MODE s 0 - 7 . See chapter 42 for more details. Examples 10 MODE 5 MODE 7 Description A statement used to select the display MODE ,which may not be used in a procedure or function.
MODE resets the value of HIMEM , except when a second processor is in use, or when the computer is operating in the shadow screen mode.