[comp.sys.apple] Line spacing on ImageWriter II

JDA@NIHCU.BITNET (Doug Ashbrook) (11/10/88)

Recently, I was modifying one of my programs so that it would produce
output on my ImageWriter II printer instead of my old Okidata 92.
This program was written in TML Pascal and set the line spacing to
18/144 inches per line.  It use to print correctly on my Okidata.
When I modified it to send what I thought were the correct
initialization values to the ImageWriter II, I always got what looks
like double spacing.  Thinking that I may have uncovered yet another
of TML's bugs, I wrote a short Applesoft program to test out various
initialization strings.  This program is listed below and it also
double spaces.  In fact, the output looks the same even if I change
the "18" to a "40" in line 60.  Line 70 is included to turn off
linefeeds after carriage returns as described on page 3.14 of
Open-Apple.  Can anyone tell me what I am doing wrong?

NEW
10REM ImageWriter II printer test
20?CHR$(4);"PR#1"
30ESC$=CHR$(27)
40?ESC$;"c":REM  restore power on defaults
50?ESC$;"Q":REM  17 chars per inch
60?ESC$;"T";CHR$(18):REM  set line spacing to 18/144 inches per line
70?ESC$;"Z";CHR$(0);CHR$(0):REM  no linefeed after carriage returns
100REM
110?
120FORJ=1TO2
130?"This is a test for the ImageWriter II printer from Applesoft Basic"
140?"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz012456789"
150NEXTJ
160?CHR$(4);"PR#0"
170END
SAVE IMAGEWRITER.TST

-------------------------------------------------------------------
J. Douglas Ashbrook                                  (301) 496-5181
BITNET: JDA@NIHCU            ARPA: jda%nihcu.bitnet@cunyvm.cuny.edu
National Institutes of Health, Computer Center,  Bethesda, MD 20892