48 | Delta User’s Manual |
paper n lines (using whatever the current line spacing is) without moving the printhead. Change line 30 of your program so that it is like this:
3@ LPRINT CHR$(27)"a" CHR$(3);
Now when you run the program the results will look like this:
LINE NUMBER 1
LINE NUMBER 2
LINE NUMBER 3
LINE NUMEEl3 4
The new line 30 moves the paper up 3 lines, but the printhead doesn’t move. Therefore, line 40 prints its message starting in the column that the printhead was left in at the end of line 20.
Forms Controls
We have seen how to control the spacing between lines on a page. Delta also has commands that control the placement of printing on the page, and even adjust for different size pages.
Form feed
The simplest forms control code is the form feed. Form feed is CHIQ(12) and causes the printer to move the paper to the top of the next sheet. Try it by changing line 30 to this:
38LPRINTCHR$(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 1. When you
-
-
-
-
-
-
-
-
-
-
-
-
-