357 28 This code ( VDU28 ) is used to set a text window. Initially it is possible to write text anywhere on the screen but establishing a text window enables the user to restrict all future text to a specific area of the screen. The format of the statement is VDU 28,leftX,bottomY,rightX,topY where leftX sets the left hand edge of the window bottomY sets the bottom edge rightX sets the right hand edge topY sets the top edge For the example shown the statement would be VDU 28,5,20,30,12 Note that the units are character positions and the maximum values will depend on the MODE in use. The example above refers to MODE1 and MODE4 .
In MODES 2 and 5 the maximum values would be 19 for X and 24 for Y since these MODE s have only 20 characters per line.