Apple II Peripheral Cards: Sending TABs to your Printer

Problems you may have sending TAB commands to your printer may stem from the interface cards "trapping" the <CTRL-I> before it goes to the printer.
To send a TAB to a DMP from an Apple IIe using a Parallel Interface Card:

Change the I/F card command character to something other than <CTRL-I>.

10 I$ = CHR$(9): Q$ = CHR$(17)
15 PRINT I$; Q$: REM command char for card is now CTRL-Q
20 PRINT I$: REM this sends the TAB

Reference: Parallel Interface Card Manual, p.12


To send a TAB to an Imagewriter from an Apple IIc:

First send <CTRL-I>Z to "zap" future commands. The I/F card will ignore following <CTRL-I>'s.

10 I$ = CHR$(9)
15 PRINT I$;"Z": REM zap
20 PRINT I$: REM this sends the TAB

Reference: Apple IIc Reference Manual, section 7.1


To send a TAB to an Imagewriter from an Apple IIe using a Super Serial Card:

Send the TAB character twice or "zap" as with the Apple IIc.

10 I$ = CHR$(9)
15 PRINT I$;I$: REM this sends the TAB

Reference: Super Serial Card Manual, page 12

BASIC's TAB command doesn't work properly with either the (old) High Speed Serial Interface or the Apple Silentype. Integer BASIC it is limited to 40 columns, while a TAB(20) in Applesoft will sometimes output 20 spaces instead of going to column 20. An example that gets around this is:

10 PRINT "HI";:POKE 36,55: PRINT "THERE"

POKE 36,55 will put the "THERE" in the 56th column (remember, Apple counts columns from 0 to 79) while still printing "HI" in column 0.

Sample program:

10 PRINT CHR$(4);"PR#1" :REM TURN THE PRINTER ON WITHOUT DISCONNECTING PRODOS
20 PRINT CHR$(9);CHR$(1) :REM SWITCH THE CONTROL CODE FROM CTL-I TO CTL-A
30 PRINT CHR$(27);"(010,020,030.":REM SET UP THE TAB LOCATIONS
40 I$=CHR$(9)
50 PRINT I$;"TEN";I$;"TWENTY";I$;"THIRTY":REM SEND THE LINE WITH TAB'S
60 PRINT CHR$(4);"PR#0":REM TURN OFF THE PRINTER
Published Date: Feb 18, 2012