2001/10/02
CHAPTER 6 EPSON - 20
• Selecting either superscript or subscript mode cancels double-height printing mode.
• You can cancel either superscript or subscript mode with the Esc T command.
LPRINT CHR$(27); CHR$(83); CHR$(0); 'Turn on superscript mode
Cancel superscript / subscript mode
EscT (27)(84) <1Bh><54h>
• This command cancels superscript or subscript printing mode.
• Subsequent text is printed using normal characters.
LPRINT CHR$(27); CHR$(84); 'Turn off superscript mode
Select / cancel double-height printing
Escwn (27)(119)n <1Bh><77h>n
• This command turns double-height printing on or off.
• If n is set to 1 subsequent text is printed using double-height characters. The line space setting is
doubled.
• If n is set to 0 subsequent text is printed using normal sized characters. The previous line spacing is
restored.
• When you specify a value for n you may also use the character codes for ‘0’ and ‘1’ (48 and 49)
instead of 0 and 1.
• You cannot use superscript, subscript or condensed printing modes in conjunction with double-
height printing. If you try to select any of these three modes while in double-height printing the
command will be ignored.
LPRINT CHR$(27); CHR$(119); CHR$(1); 'Set double-height printing mode
Select / cancel underline mode
Esc–n (27)(45)n <1B><2D>n
• This command turns character underlining on or off.
• If n is set to 1 subsequent text is printed underlined. All characters, including space characters, are
underlined with a continuous line.
• Horizontal tabbed spaces are never underlined.
• If n is set to 0 subsequent text is not underlined.
• When you specify a value for n you may also use the character codes for ‘0’ and ‘1’ (48 and 49)
instead of 0 and 1.
LPRINT CHR$(27); CHR$(45); CHR$(1); 'Underline following text
Select printing mode
Esc!n (27)(33)n <1Bh><21h>n
• This command allows you to select a combination of printing modes with just one command.
• The various modes are weighted as shown. Add the numbers that correspond to each mode you
require and set n to the total.
10 characters per inch 0
12 characters per inch 1
Proportional spacing 2
Condensed mode 4
Emphasized mode 8
Double-strike mode 16
Double-width mode 32
Italic printing 64
Underline mode 128
• Double-strike and emphasized modes are identical.
• Proportional spacing overrides either character pitch setting (10 cpi or 12 cpi).
• Proportional spacing and condensed mode cannot be combined. Proportional spacing has
precedence.
LPRINT CHR$(27); CHR$(33); CHR$(138); 'Proportionally space, emphasize
& underline following text.