Table 5-3
Eighth bit controls
Function Control code
Turn the eighth bit ON (ESC) “>”
Turn the eighth bit OFF (ESC) “=”
~ec~~~~;t~ bit “as is” from ( ESC > ,,#,,
n Block graphics characters and special symbols
Besides the upper and lower case letters and symbols that we
are by now familiar with, your printer has a whole different set
of characters that are for special uses. These characters include
block graphics for drawing forms and graphs, and special sym-
bols for mathematical, engineering and professional uses. The
special characters are included in two character sets. The
character set you normally use with IBM mode is called
character set #l. The special characters are printed out when
you send ASCII codes 160-255 to the printer.
Your printer 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 128-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 set-
ting DIP switch l-7 on for character set #l and off for character
set #2. The following program will print out all of the graphics
characters available:
10 LPRINT CHR$(27);"0";
20 LPRINT CHR$(27);"6";
30 FOR J=3 TO 6
40 LPRINT " d';J;CHR$(J.);CHR$(9);
50 NEXT J
60 LPRINT " 20 ";CHR$(20)
70 LPRINT
80 LPRINT " 21 ';CHR$(21);CHR$(g);
90 LPRINT " 26 ";
100 LPRINT CHR$(26)
1'20 LPRINT
130 FOR ~=128 TO 254 STEP 5
140 FOR I=J TO J+4
150 IF I>254 THEN 170
160 LPRINT I;CHR$(I);CHR$(g);
170 NEXT I
180 LPRINT : LPRINT
190 NEXT J