Table |
| |
Italic | commands |
|
Function | Control code | |
Italic ON | (ESC) | “4” |
Italic OFF | (ESC) | “5” |
Use this program to see italic characters:
10 ’ Demo of italic and roman
20 LPRINT CHR$(27);"4";
30 LPRINT “This line is in ITALIC characters.”
43 LPRINT CHR$(27);"5";
50 LPRINT "This line is in ROMAN characters."
In this program, line 20 turns italic on with (ESC) “4”, and line 40 turns italic off with (ESC) “5”.
nUnderlining
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
| Table |
|
| |
| Underline | commands |
| |
Function |
| Control code | ||
Underline | ON | (ESC) | 1 | |
Underline | OFF | (ESC) | 0 |
It’s that simple. Let’s try it with this program:
10' Demo of underlining
20LPRINT CHR$(~~)
30 LPRINT "This phrase is UNDERLINED;" ;
40LPRINT
50LPRINT " this is not."