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. SR-lo/15 also has commands that control the placement of printing on the page, and even adjust for different size pages.

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

Page 64
Image 64
Star Micronics SR-10/I5 user manual Forms Controls