92
Nope! Just three characters in the download set. This is incon-
venient for a couple of reasons. First, every time you wanted to
use a download character you would have to switch back and
forth between character sets. Knowing that you wouldn’t want
to do that, your printer won’t even allow it. So we have made it
an easy task to use mostly standard characters with just a few
special characters thrown in. This command copies all the
ASCII characters from the standard character ROM into
download RAM:
(ESC)“:“CHR$(O);CHR$(O);CHR$(O)
Since it will copy all characters into download area, it will
wipe out any characters that are already there. So it’s important
to send this command to the printer before you send any
download characters you want to define. With that in mind, add
this line to the program we used to send the characters to your
printer:
5 LPRINT CHR$(27);":"; CHR$(O);CHR$(O);CHR$(O)
Now try the download printout test program again. Your
results look like Figure 6-11.
Figure 6- 11. Printout of the dqwnload character set, into which all
the ASCII characters have been copied, and the (, = and > have been
changed.
To demonstrate how to use these characters, let’s use this
character set to print a small graph. This program, which has
been built around the first program in this chapter, will do just
that:
10 LPRINT CHR$(27);":"; CHR$(O);CHR$(O);CHR$(O);
20 LPRINT CHR$(2~>;"&";CHR$(O);CHR$(6O);CHR$(62);
30 FOR N=60 TO 62
40 FOR M=O TO 11
50 READ MM
60 LPRINT CHR$(MM);