49 to fill the text window with red and GCOL 0,130 CLG to fill the graphics window with yellow. Note: In the various different screen modes the number of text characters which can be accommodated along the screen and down the screen is also different. This affects the range of values for the horizontal distances a and c as follows: MODE s 0 and 3 (80 characters to a line) 0 to 79 MODE s 1 , 4 , 6 and 7 (40 characters to a line) 0 to 39 MODE s 2 and 5 (20 characters to a line) 0 to 19 Similarly the values of b and d depend on the MODE:
MODE s 0 , 1 , 2 , 4 and 5 have 32 lines (0 to 31) MODE s 3 , 6 and 7 have 25 lines (0 to 24) To recap, to set up the windows press BREAK then type the following – with RETURN at the end of each line. You are working in command mode rather than writing a program, so the computer acts on each instruction as you press RETURN . It also means that pressing BREAK while you are using windows would destroy the text and graphics windows and send the computer back to MODE 7 . MODE 5 VDU 24,0;100;300;1000; VDU 28,5,31,19,0 CLS The command CLS clears the text from the screen. Now try typing the following lines:
DRAW 0,1000 DRAW 100,1000 DRAW 0,0 DRAW 1000,1000 You will find that text is now only appearing in the text window and that graphics are only appearing in the graphics window. If you want to clear the text only, type CLS RETURN If you want to clear the graphics only, type CLG RETURN