40'Form feed.

50 LPRINT CHR$(12) ;

Before you run the program, turn your printer off and adjust the paper so that the top of the sheet is even with the top of the ribbon guide on the print head, then turn the printer back on. If you don’t remember how to do this, review Chapter 2. When you run the program, the results will look like this:

0 ’

- L - - - - - - - - --

0 Line number 1. Line number 2.

0

0 j -i---------

O I Line number 3. , Line number 4.

0

O 1

I

0 /

The form feed (CHR$(12)) in line 50 caused the printer to move to the top of a new page before printing the last two lines.

A note to TRS-80 users: CHR$(12) is a problem code for the TRS-80. To send a form feed command to SR-IO/l5 you must add 128 to it making it CHR$( 140). Use CHR$( 140) where we use CHR$(12) in these programs.

nReverse form feed

Just as SR-lo/15 can perform a reverse line feed, it can do a reverse form feed. This code moves the paper so that the print head is positioned at the top of the current page. This can be used, for example, to print text in a multi-column magazine format; print the first column, then reverse form feed back to the top of the page to start the second column. The code for reverse form feed is easy to remember: < ESC > < FF > .

55

Page 65
Image 65
Star Micronics SR-10/I5 user manual Form feed Lprint CHR$12