Star Micronics NX-15 Printer User Manual


 
86
So how are all of these characters used? Here is a program
that demonstrate how the graphics characters can be combined
to create a figure: the 5 of clubs.
10
20
30
40
50
60
70
80
90
LPRINTCHR$(27) ;“6”;
LPRINTCHR$(218);CHR$(196) ;CHR$(196);CHR$(196);
CHR$(196);CHR$(196);CHR$(191)
LPRINTCHR$(179);CHR$(53);CHR$(32);CHR$(32);
CHR$(32);CHR$(32);CHR$(179)
LPRINTCHR$(179);CHR$(~2);CHR$(5);CHR$(32);
CHR$(5);CHR$(32);CHR$(179)
LPRINTCHR$(179);CHR$(32);CHR$(32) ;CHR$(5);
CHR$(32);CHR$(32);CHR$(179)
LPRINTCHR$(179);CHR$(32);CHR$(5) ;CHR$(32);
CHR$(5);CHR$(32);CHR$(179)
LPRINTCHR$(179);CHR$(32);CHR$(32);CHR$(32);
CHR$(32);CHR$(53);CHR$(179)
LPRINTCHR$(192);CHR$(196);CHR$(196);CHR$(196);
CHR$(196);CHR$(196);CHR$(217)
LPRINTCHR$(27);”7”
Ifyouhave a7-bit interface, add the followinglinestothe pro-
gram given above:
15 LPRINTCHR$(27);’’>”;
95 LPRINTCHR$(27);”=”
In this program, line 10 selects characterset#2so thatall the
graphics characters can be used (including the ’’club’’symbol).
Then lines20 -
80printthe50f clubs figure. Line 90 cancels
character set #2 (which is the same as selecting character set
#l).