The < ESC > “a” CHR$(n) command advances the paper n lines (using whatever the current line spacing is) without moving the printhead. Change line 40 and 50 of your program so that they are like this.
4p) 'Advance paper 3 lines.
50 LPRINT CHR$(27) "a" CHR$(3) ;
Now when you run the program the results will look like this.
The new line 50 moves the paper up 3 lines, but the printhead doesn’t move. Therefore, line 60 prints its message starting in the column that the printhead was left in at the end of line 30.
FORMS CONTROLS
We have seen how to control the spacing between lines on a page.
nForm feed
The simplest forms control code is the form feed. Form feed (or < FF > ) is CHR$(12) and causes the printer to move the paper to the top of the next sheet. Try it by changing lines 40 and 50 to this:
-
-
-
54