|
|
|
| Table | |
|
|
|
| Line spacing commands | |
Function |
|
| Control code | ||
Set | line | spacing | to | l/8 inch | (ESC)“O” |
Set | line | sDacinz | to | 7160 inch | (ESC)“l” |
Setlinemacinntol/6inchoruse0W”A” defiiitiod(ESC )“2”
1Set or define line spacingto n/60 inch I (ESC)“
line feed of n/180inch 1 ( ESC)“ |
nMoving 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
20 LPRINT "LINE NUMBER 1."
30 LPRINT "LINE NUMBER 2.";
40 '
50 LPRINT CHR$(27);“J*‘;CHR$(lOO);
60 LPRINT "LINE NUMBER 3."
70 LPRINT "LINE NUMBER 4."
80END
Here is what your printer will produce:
LINE NUMBER 1.
LINE NUMBER 2.
LINE NUMBER 3.
LINE NUMBER 4.