Line 20 turns on
<ESC > “E”. Line 50 prints a line of text in
“H” so | that | line 70 can print in emphasized | only. | Finally, | line | ||
80 turns emphasized off, so that |
| ||||||
printing. |
|
|
|
|
| - | |
Look | closely at the different lines of printing. | In the line of |
| ||||
printing each character has been | printed twice, | and | - | ||||
they are moved down just slightly the second time they are printed. |
| ||||||
In emphasized printing, they are moved slightly to the right the | ~_ | ||||||
second time SR- lo/ 15 prints. The last line combined both of these | |||||||
| |||||||
so that each character was printed 4 times. Now that’s pretty |
| ||||||
nice printing, | isn’t it? |
|
|
|
|
MIXING MODES
We have learned how to use SR- lO/ 15’s many different prmting modes individually.
Star’s engineers have given a unique control command that lets you choose at will between any of different printing styles. This command is called Master Select. The Master Select command consists of < ESC > “?” followed by a single ASCII code. (At IBM mode, use “!” instead of “?“.) The value of the ASCII code determines the printing style that is selected, as shown the table below.
Let’s see how this master select looks. Try this program with STAR mode:
18 'Demo master select print
2flLPRINT CHR$(27) "?" CHR$(16) ;-_ 3@ LPRINT "This line is
40 LPRINT CHR$(27) "?" CHR$(24) ;
50 LPRINT "This line is
60 LPRINT CHR$(27) "?" CHRS(8) ;
74)LPRINT "This line is EMPHASIZED printing." 80 LPRINT CHR$(27) "?" CHR$(2) ;
90 LPRINT "This line is normal printing."
-
When you run this program you should get the same as the previous result.
44