57
Sample Printing
-!dd:-!:
Top of Page 1
-!ddd:
****
Top of Page 2
****
3) Line feed setting by (n-1 )/48 inch (ESC RS n)
Format • LPRINT CHR$(27);CHR$(30);CHR$(n); or
LPRINT CHR$(&H1 B);CHR$(&H 1 E);CHR$(n);
n = 1 to 126
Function • This escape sequence selects (n-1 )/48 inch line spacing. The
minimum line spacing is 1/48 inch when n = 2 and no line feed is
performed when n = 1.
Example To set the line feed to 1 /4 inch n = 1 3 which is calculated as
1 /4 = 1 2/48 and n-1 = 12, so n = 13.
Sample Program
1 0 0 REM
Line Feed S e t ting by (n- 1 ) /48 inch (ESC RS n)
110 LPRINT CHR$ ( 27 ) ; CHR$ ( 2 6 ) ; "I" ; : REM RESET
1 20 FOR 1=7 TO 1 1 STEP 2
130 FOR N=l TO 3
1 40 LPRINT CHR$ ( 2 7 ) ; CHR$ ( 3 0 ) ; CHR$ ( I ) ;
15 0 LPRINT " ( " I ; " - 1 ) /48 inch- - - - - - - - - - "
1 6 0 NEXT N
1 7 0 NEXT I
Sample Printing
!
7 -l
i
/48 inch- - - - - - - - - -
7 - 1 /48 inch- - - - - - - - - -
7 - 1 /48 inch- - - - - - - - - -
9 - 1 /48 inch- - - - - - - - - -
( 9 - 1 ) /48 inch- - - - - - - - -
( 9 - 1 ) /48 inch- - - - - - - - -
( 1 1 - 1 ) /48 inch- - - - - - - - - -
( 1 1 - 1 ) /48 inch- - - - - - - � -
( 1 1 - 1 ) /48 inch- - - - - - - - - -
11.8.6 Miscellaneous Commands
1) Null (NUL)
Format • LPRINT CHR$(0); or LPRINT CHR$(& H00);
Function This code does not perform any function on the printer, but it can
be used to create a time delay if put into a "for next loop."
2) Bell (BEL)
Format • LPRINT CHR$(7); or LPRINT CHR$(&H7);
Function • A 0.2 second beep is sounded when the typewriter receives the
BEL code.
Sample Program
100 REM
Be l l ( B EL )
1 1 0 LPRINT CHR $ ( 2 7 ) ; CHR$ ( 2 6 ) ; " I " ; : REM RES ET
120 LPRINT CHR$ ( 7 ) ; "B e l l"