Star Micronics NX-10 Printer User Manual


 
f Demo of italic and
:; LPRINT CHR$(27)*"4"*
30 LPRINT "This li;e ii
40 LPRINT CHR$( 27);"5y
50 LPRINT "This line is
Here is what you should get:
roman
in ITALIC characters."
in ROMAN characters."
In this program, line 20 turns italic on with (ESC) “4”, and
line 40 turns italic off with (ESC) “5”.
W Underlining
Not only can your printer print all styles of printing in both
roman and italic, but it can underline them too. The control
codes are shown in Table 3-3.
Table 3-3
Underline commands
Function
Control code
Underline ON
(ESC) “-“l
Underline OFF
(ESC) “-“0
Again, that’s simple. Let’s try it with this program:
' Demo of underlining
:; LPRINT CHR$(27)*"-1".
30 LPRINT "This ph;ase is UNDERLINED;";
40 LPRINT CHR$(27);"-0";
50 LP-RINT It this is not."
It should come out like this:
This phrase -I& UNDERLINED; this is not.