Star Micronics NB-15 Printer User Manual


 
Table 6-2
Line spacing commands
Function
Control code
Set line spacing to l/8 inch
Set line sDacinz to 7160 inch
(ESC)“O”
(ESC)“l”
1 Set or define line spacing to n/60 inch
I (ESC)“
-reverse line feed of n/180 inch 1 ( ESC)“
Set line macinn to l/6 inch or use 0W”A” defiiitiod (ESC )“2”
One-time line feed of n/180 inch (ESC)“J"CHR$(n)
n Moving down the page without a carriage return
So far, all the commands that move the paper also move the
print head to the left margin. And normally this is what you
want. Sometimes, though, you may wish to move down the page
without moving the printhead back to the left margin. The
following commands do just that.
The (ESC)“J”CHR$(n) command causes the printer to make
one line feed of n/180 inch, but does not change the setting of the
line spacing. Try this program to see how it works:
10 ' Demo of one-time line feeds
20 LPRINT "LINE NUMBER 1."
30 LPRINT "LINE NUMBER 2.";
40 ' 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:
LINE NUMBER 1.
LINE NUMBER 2.
LINE NUMBER 3.
LINE NUMBER 4.