ued.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.

nSuperscripts and subscripts

SR-lo/15 can print in two different heights of characters. The smaller characters are called superscripts and subscripts and are

half the height of normal characters. Superscripts print even with the tops of regular printing while subscripts print even with the bottom of regular printing. They are frequently used to reference footnotes, and in mathematical formulas.

Table 5-4 has the codes for using superscripts and subscripts.

 

Table

5-4

 

Superscript

and subscript commands

Function

Mode

Control code

SuperscriptON

STAR

<ESC>

‘73”0

 

IBM

< ESC >

“S”0

SubscriptON

STAR

< ESC >

“S” 1

 

IBM

< ESC >

“S”1

Super & subscript OFF

STAR

<ESC>

“T”

 

IBM

<ESC>

“T”

Try this program to see them work:

10'Demo subscripts and superscripts.

20LPRINT "Look! " ;

30 LPRINT CHR$(27) "S" CHR$(@) ; 'Superscript on.

40

LPRINT "Superscripts " ;

-

50

LPRINT CHR$(27)

"T" ; 'Cancel superscripts.

 

60

LPRINT "& " ;

 

 

79 LPRINT CHR$(27)

"S" CHR$(l) ; 'Subscriptson.

 

80

LPRINT "subscripts w ;

 

98

LPRINT CHR$(27)

"T" ; 'Cancel subscripts.

 

108 LPRINT "on one line."

Here line 30 turns on superscripts with < ESC > “S” CHR$(O). It’s turned off in line 50 with < ESC > “T”. Then, between printing text, subscripts are turned on in line 70 with < ESC >

38

Page 48
Image 48
Star Micronics SR-10/I5 user manual Star