3 – 28
Epson
You have the option of setting up to eight separate sets—called channels—of vertical
tab stops. The command to set vertical tab channels, ESC b, uses the same principles
as ESC B: stops are listed in ascending order, and the list ends with NUL. You have
to specify which channel you are setting stops for, by giving a value from 0 to 7 for
the variable n. Once you have set up the stops in the channels you are using, you
perform the vertical tabs by sending the ESC / command to specify a channel, followed
by VT.
Vertical Tab Channel Decimal Hex ASCII Comp
Select vertical tab channel 27 47 n 1B 2F n ESC / n E
Select vertical tab stops 27 98 n 1B 62 n ESC b n E
for channel n m1...mk 0 m1...mk 00 m1...mk NUL
n = 0 to 7; m = 1 to 255; k = 1 to 16
Example
The following BASIC program sets stops in three channels, and then performs a series
of vertical tabs in the different channels:
5 REM Stops in channel 0: lines 10, 20, 30, 40, 50
10 LPRINTCHR$(27);“b”;CHR$(0);CHR$(10);CHR$(20);CHR$(30);CHR$(40);
CHR$(50);CHR$(0)
20 REM Stops in channel 1: lines 5, 15, 35, 45, 55
30 LPRINT CHR$(27);“b”;CHR$(1);CHR$(5);CHR$(15);CHR$(35);CHR$(45);
CHR$(55);CHR$(0)
40 REM Stops in channel 2: lines 12, 24, 48
50 LPRINT CHR$(27);“b”;CHR$(2);CHR$(12);CHR$(24);CHR$(48);CHR$(0)
60 LPRINT CHR$(27);“/”;CHR$(1): REM Select channel 1
70 LPRINT CHR$(11);“This prints on line 5”
80 LPRINT CHR$(11);LPRINT CHR$(11);“This prints on line 35”
90 LPRINT CHR$(27);“/”;CHR$(2): REM Select channel 2
100 LPRINT CHR$(11);“This prints on line 48”
110 LPRINT CHR$(27);“/”;CHR$(0): REM Select channel 0
120 LPRINT CHR$(11);“This prints on line 50”