Printing Text With Delta

35

This program is easy; line 10 turns italic on with (ESC) “4”, and line 30 turns it off with (ESC) “5”.

UnderJining

Not only can Delta print all the styles of printing that we have seen in both roman and italic, but it can underline them too. The control codes are shown in Table 3-5.

 

Table 3-S

 

Underline

commands

Function

 

Control code

Underline

ON

(ESC) “-"CHR$(l)

Underline

OFF

(ESC) “-"CHR$(O)

Again, that’s simple. Let’s try it with this program:

NEW

18LPRINT CHR$(27)'-' CHR$(l);

2g LPRINT "THIS IS UNDERLINED"; 3@ LPRINTCHR$(27)11-uCHR$(a); 49 LPRINT v AND THIS IS NOT"

It should come out like this:

TtiIS IS UNDERLINED AND THIS IS NOT

__-_-_.-- -.-..._.--------“--_--

In this program underline is turned on in line 10 with (ESC)

- ” CHR$(l), and then off in line 30 with (ESC) “ -” CHR$(O). There’s a new little wrinkle in this program, though. It all printed on one line. The semicolons at the end of the first three lines told BASIC that those lines were to be continued. Therefore, BASIC didn’t send a carriage return and line feed at the end of those lines. We just did this to illustrate that all these control codes can be used in the middle of a line. It’s easy to underline or italicize only part of a line.

Superscripts and subscripts

We have seen how Delta can print in 6 different widths. Delta

Page 47
Image 47
Star Micronics Delta user manual UnderJining, Superscripts and subscripts