L |
| 71 | |
|
| ||
| n Printing characters in the control code area | ||
| When you refer the Appendix C, you’ll find many characters | ||
| are printed in the control code area. (Remember that the low- | ||
| order control codes are the ASCII codes 0 through 31 plus 127, | ||
| and the | ||
| These codes don’t normally print characters on paper, rather | ||
| they cause the printer to change modes. To make them print as | ||
| normal characters requires an extra command. For example, | ||
| the command to “normalize” the | ||
| (ESC) “6”. Try this program with the DIP switch | ||
i. |
|
| |
| 10 ' Demo of characters in | ||
L | code | area | |
| 20 LPRINT CHR$(27);"6"; | ||
L | 30 FOR I=128 TO 159 | ||
40 LPRINT CHR$(I); | |||
| |||
| 50 NEXT | I | |
| 60 LPRINT | ||
| 70 END |
|
i.
6..
That’s where the italic international characters have been
stored. So the (ESC) “6” command without the (ESC) “R” gives you access to the international characters. The (ESC) “7” turns these characters back into control codes.
The
c..them can be printed easily. The (ESC) “I” 1 command makes
them printable, and the (ESC) “I” 0 returns them to normal.
L.Just as the higher control codes hide the italic international characters, the lower control codes hide the roman international characters.
Let’s see how these commands work with the following pro- gram:
10 ' Demo of characters in control code area
20 LPRINT CHR$(27);"11";
30 FOR I=0 TO 6