Star Micronics NB-15 User Manual page 62

Star micronics printer user's manual
Table of Contents

Advertisement

54
print head to the left margin, ready to start a new line.
Now to add a little confusion-most
(but not all) versions of
BASIC add a line feed (CHR$(lO)) to every carriage
return
(CHR$(13)) that they send. If your version of BASIC doesn't do
this, then you should turn DIP switch 2-6 off so that your printer
will add the line feed for you. When you have DIP switch 2-6 off
the printer will do the same thing when it receives a carriage
return as it does when it receives a line feed.
If you find that your printer double spaces when it should
single space, then you probably need to turn DIP switch 2-6 on.
Table 6-1
Line feed commands
Function
Control code
Return print head to left margin
CHR$(lS)
Advance paper one line
CHR$(lO)
n Changing the line spacing
When you turn your printer on the line spacing is set to 6 lines
per inch (or 8 lines per inch if DIP switch 2-8 is off). This is fine
for most printing
applications,
but sometimes
you may want
something
different.
Your printer makes it easy to set the line
spacing to whatever you want.
Try this program to see how easy it is to change the line spac-
ing:
10 ' Demo
of line
spacing
20 FOR I=1 TO 20
30 IF I=13
THEN 60
40 LPRINT CHR$ (27) ; "A" ; CHRS ( I ) ; CHR$ (27) ; "2" ;
50 LPRINT "THIS
LINE SPACING IS SET TO";1
60 NEXT I
70 LPRINT "THIS
LINE SPACING IS SET TO l/6
INCH."
80 LPRINT CHR$(27) ; "A";CHR$( 10) ;CHR$(27)
; "2";
90 END
This is what you will get:

Advertisement

Table of Contents
loading

Table of Contents