Olivetti 900X Operating Instructions Manual page 52

Electronic typewriter
Table of Contents

Advertisement

11.8.2 Formatting Commands
1 ) Set left margin ( ESC 9)
Format ·
LP R I NT CH R$(27) : " 9 " , or L P R I NT C H R$(& H 1 8) ; " 9 " ;
Function • This escape sequence sets the left margin to the current carrier
position The left margin cannot be set to the right of the right
margin. Use Space-SP(n), C HR$(32) or Back space-CHR$(9)
to move the carrier to the desired posit ion .
Sample P rogram and Sample Printing Refer to I tem 2) Set right margin.
2) Set right margin ( ESC 0)
Format :
LP R I NT CH R$(27 ) ; "0" ; or L P F) I NT CH R$( & H 1 B ) ; "0" ;
Function . This escape sequence sets the right margin to the current carrier
position. The right margin cannot be set to the left of the left
'margin
to move the carrier to the desired position
Sample Program
1 0 0
REM
S e t s Le f t M a r g i n ( E SC 9 ) and R i gh t Ma rgin ( E S C 0 )
1 1 0
LPR INT
CHR$ ( 2 7 ) ; CHR$ ( 2 6 ) ; " I " ; : REM RESET
1 2 0
LPR INT
" 0 1 2 34 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 45 6 7 8 9 0 1 2 3 4 5 6 7 8 9 "
1 3 0
LPRINT
SPC ( 4 ) ; CHR $ ( 2 7 ) ; " 9 " ;
1 40
LPRINT
" < - - -Le f t Marg in R i gh t Margin- - - > " ;
1 5 0
LPRINT
CHR $ ( 2 7 ) ; " 0" ;
1 6 0
LPRINT
" a b c d e f gh i j k lmno p q r s tuvwxyzABCDEFGHIJKLMNOPQRS TUVWXYZ"
Sample Printing
0 1 2 3 4 5 6 7 8 9 0 1 2 34 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9
< - - -Le f t Ma rg i n R i gh t M a r g i n - - - >
a b c d e f gh i j k lmno p q r s tuvwxyzABCDEF
G H I JKLMNOPQR STUVWXYZ
3) Set page length to "n" lines (ESC FF n)
Format ·
L P R I NT C HR$(27 ) ; C H R$(12) ;CHR$(n) ; or L P R I NT
CH R$(& H 1 B);CHR$( & HC);CH R$(n) ;
n = 1 to 1 26
Function This escape sequence sets the page length to "n" number of
lines.
lJse Space-S P(n), CHR$(32) or Back space-CHR$(9)
46

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents