Star Micronics SR-10/I5 user manual Setting Left and Right Margins, Star CHR$9 IBM CHRU9

Models: SR-10/I5

1 130
Download 130 pages 19.46 Kb
Page 73
Image 73

Table 7-l

Horizontal tab commands

Function

Mode Control code

Advance to next tab position

Settabsatnl, n2, etc.

One-timetabofn spaces

STAR CHR$(9)

IBM CHRU9)

L

I

\

I

STAR < ESC > “D" CHR$(nl)

t-rCHR!$(n2)...CHR$(O)

IBM .z:ESC > “D" CHR$(nZ) CHR$(n2)...CHR$(O)

STAR <ESC> “b” CHR!$(n)

IBM <ESC > “b” CHR$(n)

Note: If your computer does not support lowercase characters, use CHR$(98) for “b.”

SETTING LEFT AND RIGHT MARGINS

SR-10/15’sleft and right margins work just like a

typewriter-once they are set all the printing is done between them.

The commands

to set the margins

are given in the following table:

 

Table

7-2

 

 

Left and right margin commands

Function

Mode

Control code

SetleftmarginatcolumnII STAR

< ESC >

“M”CHR$(n)

 

IBM

< ESC >

“1” CHR$(n)

Setrightmarginatcolumnn STAR < ESC > “Q” CHR$(n)

 

IBM

< ESC > “Q” CHR$(n)

Try setting SR-10/15’s margins with this program for STAR mode:

10'Demo margins.

241GOSUB 70

30LPRINT CHR$( 27) "M" CHR$( 18) ; 'Left margin = 10.

40LPRINT CHR$(27) "Q" CHR$(7@) ; 'Right margin = 70.

50 GOSUB 70

60END

70FOR I = 1 TO 80

80LPRINT "X" ;

90NEXT I 109,LPRINT

110RETURN

63

Page 73
Image 73
Star Micronics SR-10/I5 user manual Setting Left and Right Margins, Star CHR$9 IBM CHRU9