2001/10/02
CHAPTER 7 IBM PROPRINTER - 14
5.3.
Using Characters
Select character set I
Esc7
(27)(55)
<1Bh><37h>
This command selects IBM Character set I for use in subsequent printing operations.
LPRINT CHR$(27); CHR$(55); 'Select character set I
Select character set II
Esc6
(27)(56)
<1Bh><36h>
This command selects IBM character set II for use in subsequent printing operations.
LPRINT CHR$(27); CHR$(54); 'Select character set II
Set pitch to 10 cpi
DC2
(18)
<12h>
•
This command sets the printing pitch to 10 characters per inch (cpi).
•
If condensed character mode has previously been set, it is cancelled.
LPRINT CHR$(18); 'set pitch to 10 CPI
Set pitch to 12 cpi
Esc:
(27)(58)
<1Bh><3Ah>
This command sets the printing pitch to 12 characters per inch (cpi).
LPRINT CHR$(27); CHR$(58); 'set pitch to 12 CPI
Proportional spacing
EscP
n
(27)(80)n
<1Bh><50h>n
•
This command allows you to turn proportional spacing on or off.
•
Setting
n
to 1 turns proportional spacing on. Subsequent text is printed proportionally spaced.
•
Setting
n
to 0 turns proportional spacing off. Subsequent text is printed monospaced.
•
If you change the character pitch using
DC2
,
S
I or
Esc :
, proportional spacing is automatically turned
off.
LPRINT CHR$(27); CHR$(80); CHR$(1); 'Turn proportional spacing on
Set condensed character mode
SI
(15)
<0Fh>
•
This command selects condensed character mode. Subsequent text characters are condensed
horizontally when printed.
•
The
DC2
code, used to select a character pitch of 10 cpi, cancels condensed character mode.
LPRINT CHR$(15); 'Set condensed character mode
Set emphasized character mode
EscE
(27)(69)
<1Bh><45h>
This command turns emphasized character mode on. Subsequent text is printed with a bold stroke width.
LPRINT CHR$(27); CHR$(69); 'Turn emphasized character mode on
Cancel emphasized character mode
EscF
(27)(70)
<1Bh><46h>
This command turns emphasized character mode off. Subsequent text is printed with medium stroke width.
LPRINT CHR$(27)l CHR$(70); 'Turn emphasized character mode off