[comp.sys.apple] HELP! Setting Tabs on Imagewriter

sklein@cdp.UUCP (11/15/88)

I'm having trouble printing ASCII messages like those in this conference.
Whenever these messages contain Ctrl-I characters (TABs), the text is
*not* tabbed on my printer.  For example, something might look like this
on the screen:        Column 1          Column 2
but print like this:  Column1Column2

The problem seems to have two sources.  The Super Serial Card uses Ctrl-I
as it's control character, and the ImageWriter II doesn't have any
pre-set tabs.  So I wrote this simple AppleSloth program, hoping it would
fix both problems and make TAB characters print correctly.

Why doesn't it work?

10 D$ =  CHR$ (4):                 REM D$ = Ctrl-D
20 PRINT D$"PR#1":                 REM Direct output to printer
30 PRINT  CHR$ (9); CHR$ (23):     REM Set SSC control
                                       character to Ctrl-W

50 PRINT CHR$(27) CHR$(40),5,10,15,20,25,30,35,40,45,50, CHR$(46)
60 REM Line 50 sets tabs to every 5 columns

70 PRINT "a" CHR$(9) "b" CHR$(9) "c" CHR$(9) "d"
80 REM Line 70 prints the letters A-D in columns 1, 5, 10 & 15

90 PRINT D$"PR#0":                  REM Direct output to monitor
99 END


I'm at wits end.  I've tried everything I can think of, but it prints out
using AppleSoft 16-column tabs, no matter what I try.

H  E  L  P  !!!!

-Shabtai Klein
____________________________________________________________________
| There is more to life than | UUCP:      uunet!pyramid!cdp!sklein   \
| increasing its speed.      | Internet:  cdp!sklein@arisia.xerox.com |
|                            | BitNet:    cdp!sklein%labrea@stanford  |
|       --Mohandis K Gandhi  | PhoneNet:  (301) 270-2250              |
 \___________________________________________________________________/

SEWALL@UCONNVM.BITNET (Murph Sewall) (11/27/88)

>I'm having trouble printing ASCII messages like those in this conference.
>Whenever these messages contain Ctrl-I characters (TABs), the text is
>*not* tabbed on my printer.  For example, something might look like this
>on the screen:        Column 1          Column 2
>but print like this:  Column1Column2
>
>pre-set tabs.  So I wrote this simple AppleSloth program, hoping it would
>fix both problems and make TAB characters print correctly.
>
>Why doesn't it work?
>
>10 D$ =  CHR$ (4):                 REM D$ = Ctrl-D
>20 PRINT D$"PR#1":                 REM Direct output to printer
>30 PRINT  CHR$ (9); CHR$ (23):     REM Set SSC control character to ^N
>50 PRINT CHR$(27) CHR$(40),5,10,15,20,25,30,35,40,45,50, CHR$(46)
>60 REM Line 50 sets tabs to every 5 columns
>70 PRINT "a" CHR$(9) "b" CHR$(9) "c" CHR$(9) "d"
>80 REM Line 70 prints the letters A-D in columns 1, 5, 10 & 15

I think the use of spaces instead of semicolons in line 70 may be the problem.

Try:

70 PRINT "a";CHR$(9);"b";CHR$(9);"c";CHR$(9);"d"

BTW: Somewhere (perhaps on the Internet, but possibly on BITNet) the file
     backlog grew so large that a number of files were rolled off on tape
     and not restored until today (11/26).  This message (and a number of
     others I've received from info-apple today) was sent on 11/14 (along
     with others sent on 11/15 and 11/16).

                                     [The Far Side shall return (I hope)]
Murph Sewall     Sewall@UCONNVM.BITNET
Business School  sewall%uconnvm.bitnet@mitvma.mit.edu          [INTERNET]
U of Connecticut {rutgers psuvax1 ucbvax & in Europe - mcvax}
                 !UCONNVM.BITNET!SEWALL                        [UUCP]

-+- My employer isn't responsible for my mistakes AND vice-versa!
            (subject to change without notice; void where prohibited)

"Close enough for government work" - source unknown (naturally ;-)