Star Micronics SB-15 user manual Here is what SD-lo/l 5 will produce, Line

Models: SB-15

1 128
Download 128 pages 39.39 Kb
Page 62
Image 62

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 one-time line feeds

20 LPRINT "Line number 1."

30 LPRINT "Line number 2.” ;

441 'One time line feed.

50 LPRINT CHR$(27) "J" CHR$(l 00) ; 60 LPRINT "Line number 3."

70 LPRINT "Line number 4."

-

-

Here is what SD-lo/l 5 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 lOO/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 > “a” CHR$(n) command advances the paper n

 

 

 

lines (using whatever the current line spacing is) without moving

 

-

the printhead. Change line 40 and 50 of your program so that

 

 

 

they

are like this.

 

 

 

-.

 

 

 

 

 

 

44) 'Advance

paper 3 lines.

 

 

-

50 LPRINT CHR$(27) "a" CHRS(3)

;

 

 

 

 

 

 

 

 

-

Now when you run the program the resultswilllook likethis.

 

-

54

Page 62
Image 62
Star Micronics SB-15 user manual Here is what SD-lo/l 5 will produce, Line