L.

i

c

~

j L.

I

) IN...

I

Printing Text With Delta

33

twice, but they use slightly different methods to darken the char- acters. Let’s try them and see what the difference is.

The following table shows the control codes for getting into and out of double-strike and emphasized modes.

 

 

Table 3-3

 

 

Print

emDhasisa

commands

Function

 

 

Control

code

Double-strike

ON

 

‘,ESC)

“G”

Double-strike

OFF

 

(ESC)

“H”

Emphasized

ON

 

(ESC)

“E”

Emphasized

OFF

 

(ESC)

“F”

Try them now with this little program:

NEW

18 LPRINTCHR$(27)"G"

28LPRINT "THIS IS DOUBLE-STRIKEPRINTING"

3p LPRINTCHR$(27)"H" CHR$(27)"E";

4@ LPRINT "THIS IS EMPHASIZEDPRINTING" 5!2 LPRINTCHR$(27)"G";

69LPRINT "AND THIS IS BOTH AT ONCE" 7pILPRINTCHR$(27)"H" CHR$(27)"F"

Run this program. The results will look like this:

THIS IS DOUBLE-STRIKE PRINTING

THIS IS EMPHASIZED PRINTING

AND THIS IS BOTH AT ONCE

Line 10 turns on double-strike with (ESC) “G” and line 20 prints a line of text. In line 30 double-strike is turned off with (ESC) “H” and then emphasized is turned on with (ESC) “E”. Line 40 prints a line of emphasized text. Line 50 then turns dou- ble-strike back on so that line 60 can print in both at once. Finally, line 70 turns both off, so that Delta is set for normal printing.

Look closely at the different lines of printing. In the line of double-strike printing each character has been printed twice, and they are moved down just slightly the second time they are

Page 45
Image 45
Star Micronics Delta user manual Lprint this is DOUBLE-STRIKEPRINTING, Print EmDhasis a Commands