H Block graphics characters and special symbols
Besides the upper and lower case letters and symbols that we
are by now familiar with, SC-lo/15 has a whole different set of
characters that are for special uses. These characters include block
graphics characters for drawing forms and graphs, and special
symbols for mathematical, engineering and professional uses.
The following program will print out all of the graphics characters
available in STAR mode.
10 'Demo all block graphic characters.
24) WIDTH "LPT1:",255
30 LPRINT CHR$(27) "D" CHR$(l@) CHR$(2'$) ;
44) LPRINT CHR$(3@) CHR$(40) CHR$(50) CHRS(60) ;
50 LPRINT CHR$(7Q)) CHR$(@) ; 'Set tabs.
60 FOR J = 160 TO 255 STEP 8
70 FOR I = J TO J + 7
80 LPRINT I 'I= " ;
90 LPRINT CHR$(I) ; 'Send graphic char.
100 LPRINT CHR$(9) ; 'Tab.
110 NEXT I : LPRINT : NEXT J
Figure 8-1 shows what this program will print. If your chart
doesn’t look like this because it has regular letters and numbers
instead of the special symbols, then your computer is only using
seven bits. You can get the correct printout by adding these lines:
85 LPRINT CHR$(~~) ">" ; 'Turn on 8th bit.
95 LPRINT CHR$(~~) "=" ; 'Turn off 8th bit.
The special characters for IBM mode are included in two
character sets. The character set you normally use is called
character set #l. The special characters are printed out when
you send ASCII codes 160-255 to the printer.
SG- lo/15 also offers character set #2 which is almost the same
as character set #l except for the addition of ASCII codes 3-6,
21, and 12% 159. Character set #2 is selected with < ESC > “6”;
to go back to character set #l, use < ESC > “7”.
You can also specify the power-on default character set by
setting DIP switch l-2 on for character set #l and off for character
set #2 when DIP switch 2-2 is set off. The following program
will print out all of the graphics characters available.
73