without moving the printhead back to the left margin. The fol- lowing commands do just that.
The < ESC > “J” CHR$(n) command causes the printer to make one line feed of n/144 inch (STAR mode), or n/216 inch (IBM mode), but does not change the setting of the line spacing. Try this program to see how it works:
10 'Demo
29)LPRINT "Line number 1.”
341LPRINT "Line number 2." ;
441 'One time line feed.
50 LPRINT CHR$(27) "J" CHR$(l@@) ; 641LPRINT "Line number 3."
74)LPRINT "Line number 4."
Here is what SR-IO/l5 will produce:
Line number 1.
Line number 2.
Line number 3.
Line number 4.
The < ESC > “J” CHR$( 100) in line 50 changes the spacing to 100/144 inches (100/216 inches for IBM mode) for one line only without moving the printhead. The rest of the lines printed with the normal line spacing. Notice that both line 30 and line 50 end with semicolons. This prevents the normal line feed from occuring.
The <ESC> “j” CHR$(n) command works the same way except that the paper moves in the opposite direction. Try this simple change to your program and see what a difference it makes!
40 'One time reverse line feed.
50 LPRINT CHR$(27) "j" CHR$(lQ)@) ;
53