2001/10/02
CHAPTER 7 IBM PROPRINTER - 13
Set horizontal tabs
EscD<n1><n2><n3>...NUL
(27)(68)n1n2n3...(00)
<1Bh><44h>n1n2n3...<00h>
•
This command enables you to set up to 28 horizontal tab stops using the current character pitch.
•
The tab stops should be set in ascending order.
•
Esc D 0
clears all horizontal tab settings.
•
Esc R
restores the default settings, which are at every eighth column, starting at the ninth column.
•
You can move the print position to the tab stops using the
HT
control code.
LPRINT CHR$(27); CHR$(68); CHR$(10); CHR$(20); CHR$(0); 'Set tab stops
at columns 10 and 20.
Set vertical tabs
EscB<n1><n2><n3> ...NUL
(27)(66)n1n2n3...(00)
<1Bh><42h>n1n2n3...<00h>
•
This command enables you to set up to 64 vertical tab stops using the line feed pitch.
•
The tab stops should be set in ascending order.
•
Esc B 0
and
Esc R
both clear all vertical tab settings.
•
You can move the print position to the tab stops using the
VT
control code.
LPRINT CHR$(27); CHR$(66); CHR$(12); CHR$(24); CHR$(0); 'Set tab stops
at lines 12 and 24.
Horizontal tab
HT
(09)
<09h>
•
The
HT
control code (ASCII 9) moves the current print position one tab stop to the right.
•
The command is ignored if there are no tab stops to the right of the current print position or if the next
tab stop is beyond the right margin.
LPRINT CHR$(9);
Vertical tab
VT
(11)
<0Bh>
•
The
VT
control code (ASCII 11) moves the current print position one vertical tab stop down the page.
•
If there are no tab stops below the current print position a line feed is performed.
•
If no tab stops have been set a line feed is performed.
LPRINT CHR$(9);
Restore default tab settings
EscR
(27)(82)
<1Bh><52h>
•
This command restores the default horizontal tab settings which are at every eight columns, starting at
the ninth column. There are no default vertical tab settings.
LPRINT CHR$(27); CHR$(82); 'Restore default tab stops.