Star Micronics NB24-10/15 user manual LPRINT CHRS27O 20 LPRINT CHR$276 30 FOR J=3 TO

Models: NB24-10/15

1 133
Download 133 pages 41.98 Kb
Page 104
Image 104
10 LPRINT CHRS(27);"O";

 

 

 

95

Table

6-4

 

 

Eighth bit controls

 

Function

Control code

 

Turn the eighth bit ON

(ESC)

“)” (except

IBM-P mode)

Turn the eighth bit OFF

(ESC)

“=“(except

IBM-P mode)

Accept the eighth bit “as is” from (ESCj ,,#,, (except IBMsP modeJ the computer

nBlock 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 the IBM modes 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-5 on for character set #1 and off for character set #2 while the IBM modes are selected. The following pro- gram will print out all of the graphics characters available:

10 LPRINT CHRS(27);"O";

20 LPRINT CHR$(27);"6";

30 FOR J=3 TO 6

40 LPRINT ' ";J;CHR$(J);CHR$(9);

50 NEXT J

60 LPRINT ' 21 ";CHR$(21)

70 LPRINT

80 FOR J=128 TO 254 STEP 5

90 FOR I=J TO Jt4

100 IF I>254 THEN 140

110LPRINT I;CHR$(I);CHR$(9);

120 NEXT I

130LPRINT :LPRINT

140 NEXT J

Page 104
Image 104
Star Micronics NB24-10/15 LPRINT CHRS27O 20 LPRINT CHR$276 30 FOR J=3 TO, FOR J=128 TO 254 FOR I=J TO Jt4 100 IF I254 THEN