286
The
VIC
20
User
Guide
To access the default character set (the one that
is
displayed
when you first turn the VIC on), OPEN your printer
file
with
OPEN
1,4
leaving out the secondary address.
2.
Print the command CHR$(17) for the alternate character set
or
CHRS(143) for the standard character set, as in the following
example:
HI
OPEN
1/4
20
PRINTl1,CHR.(17)i"LOWER
CASE"
30
PRINTl1,CHRS(143)i"UPPER
CASE"
40
CLOSE
1
Print
formatting
The formatting instructions TAB and SPC and the comma and semi-
colon help you to position data on the video screen. Although the printer
also uses these instructions, it does not treat them exactly as the video
display does.
THE
COMMA
The comma starts data in two specific locations
on
the video screen:
column 0 and column
11.
Try this example.
10
FOR
T=0
TO
30
20
PRINT
T,
30
NEXT
Notice that two even columns are displayed, even though the numbers
in them are of different lengths. On the printer, a comma will put
11
spaces
between your entries, but they will not necessarily wind up in even columns.
Try the same program on the printer.
5
OPEN
1,4
10
FOR
T=0
TO
30
20
PRINTlU,
T,
30
NEXT
40
CLOSE
1
THE
SEMICOLON
The semicolon operates in the same way on the printer as it does on the
video display.
It
is
used to separate variables without putting spaces