Olivetti 900X Operating Instructions Manual page 53

Electronic typewriter
Table of Contents

Advertisement

Sample Program
Sample Printing
4) Horizontal tab ( HT)
Format •
Function • When the HT code is received, the carrier moves right to the next
Sample Program and Sample Printing Refer to I tem 6) Set horizontal tab
5) Absolute hori zontal tab to position "n- 1 " ( E SC HT n)
Format •
Function • This escape sequen,ce moves the carrier to the position specified
Sample Program
1 0 0 REM
1 1 0 LPRINT CHR$ ( 2 7 ) ; CHR$ ( 2 6 ) ; " I " ; : REM RESET
1 2 0 LPRINT " 0 1 2 3 4 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 01 2 3 45 6 7 8 9 0 1 2 3 4 5 6 7 8 9 "
1 3 0 R E M
1 4 0 LPRINT CHR$ ( 2 7 ) ; CHR$ ( 9 ) ; CHR$ ( 1 0 ) ;
1 5 0 LPRINT " A - T ab "
1 6 0 LPRINT CHR$ ( 2 7 ) ; CHR$ ( 9 ) ; CHR$ ( 2 0 ) ;
1 7 0 LPRINT " A - T ab"
47
1 6 0 L PR I NT ' ' L i ne'' ;
L in e 2
L i n e 2
L i n e 3 ..., . , .., .• ..., . • .., . •
1 0 0 REM
S e t P a g e Len g t h ( E S C F F n )
1 1 0 LPRINT CHR$ ( 2 7 ) ; CHR$ ( 2 6 ) ; " I " ; : REM RESET
1 2 0 REM
S e t P a g e L en g th t o 5 L i n e s
1 3 0 LPRINT CHR$ ( 2 7 ) ; CHR$ ( 1 2 ) ; CHR$ ( 5 ) ;
1 40 FOR N= 1 TO 2
1 5 0 FO R 1 = 1 TO 3
1 7 0 NEXT I
1 8 0 LPRINT CHR$ ( 1 2 ) ; : ' F o rm F e e d
1 9 0 NEXT N
2 0 0 LPRINT " - - - - - - - - - - - - - END- - - - - - - - - - - - - "
L in e 1
;': · · : :·k;':-; ' ,..., ' : -; ' :·k- ::..., · ,..., · ,..., , ,.., , ,,., , ,..., , ,.., , ,..., , ,..., , ,..., , ,.., , , .. ; ,..., • ,
·· k -; ' :-,•,..., • : -,': · k·k-;':;':;':;':; ':;':-;':;':;':·· k - k • k;':;' : · · k
L i ne 1
-;',..., , ,..., , ,..., , , ..
..., . ,..., , , ,. ,·k i' : --, ' ,..., ' :; ':;':·k..., ' :..., • :..., • :..., ' : · · k ·k·-k;':--. ' :;':;':· · : ,
- - - - - - - - - - - - - EN D - - - - - - - - - - - - -
LPR I NT CHR$(9)• or LPR I NT CHR$(&H9)
tab.
LPR I NT CHR $(27 ) ; CHR$(9);CHR$(n); or l'.: PR I NT
·
CHR$(&H1B);CHR$(&H9);CHR $(n) ; n = 1 to 126
by n, regardless of any tabs. This is a one line com mand, and
does not set a tab.
M an y computers do not correctly send CHR$(9) data , in which
case print out will differ from the sample below.
Ab s o lu t e Tab to n - 1 ( E S C HT n )
T a b t o n - 1
· - k ..., ' : 1,..., ' :.., ' :· · k --, ' :..., ' :-; ' :..., ' : ; ':..., ' :-;':..., ' :--, ' :;':..., ' : ; ': 1 : ; ' : · k · k ' '
I ''
-: : ..., , ,..., , , .., , ,..., , ,..., , ,..., , ,..., , ,.k..., ' :-}: · · k
':;',--, ' ,..., ' :--. ' , -, ',
-,
i' : ·· k --. ' ,..., ' :;':;':·k-;':;':-k; ' :..., ' :;'o ':·k • k;':;':

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents