46
NEW
10 ' Demo of' one-time line feeds
20 LPRINT "LINE NUMBER 1."
;; LPRINT "LINE NUMBER 2.";
' One-time line feed
50 LPRINT CHR$(27>;"J";CHR$(loO);
60 LPRINT "LINE NUMBER 3."
70 LPRINT "LINE NUMBER 4."
80 END
Here is what your printer will produce:
i-:1: IW I\Il.JMEE:FI I. I
I__ I Ntx I’dJMBER 2 n
I.... I NE NIJMBEH 3.
L.:I: NE: NCJMBER 4 ,s
The (ESC)“J”CHR$(lOO) in line 50 changes the spacing to
100/216 inches 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 occurring.
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$(lOO);
L:C NE W..IME:EK 3 m
I__ 1 :;.I E tq I,_! pl E: E: Fi. it
Iem 1: i\! - i’%] I,..! 1’1 E: 1: F: j, .
iv 1 NE N!..!tqE:ER :z .