Star Micronics NB-15 user manual n Moving down the page without a carriage return

Models: NB-15

1 114
Download 114 pages 4.7 Kb
Page 65
Image 65
nMoving down the page without a carriage return

 

 

 

 

Table 6-2

 

 

 

 

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)“

One-time line feed of n/180 inch (ESC)“J"CHR$(n)

-reverse

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 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."

80END

Here is what your printer will produce:

LINE NUMBER 1.

LINE NUMBER 2.

LINE NUMBER 3.

LINE NUMBER 4.

Page 65
Image 65
Star Micronics NB-15 user manual n Moving down the page without a carriage return