Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ulowell!cbmvax!daveb From: daveb@cbmvax.UUCP (Dave Berezowski) Newsgroups: comp.sys.amiga Subject: Re: Printer Driver Message-ID: <6401@cbmvax.UUCP> Date: 24 Mar 89 22:04:29 GMT References: <5627@ux.cs.man.ac.uk> <6204@cbmvax.UUCP> <4375@enea.se> <6355@cbmvax.UUCP> <4384@enea.se> Reply-To: daveb@cbmvax.UUCP (Dave Berezowski) Organization: Commodore Technology, West Chester, PA Lines: 61 In article <4384@enea.se> tope@enea.se (Tommy Petersson) writes: >In article <6355@cbmvax.UUCP> daveb@cbmvax.UUCP (Dave Berezowski) writes: >-In article <4375@enea.se> tope@enea.se (Tommy Petersson) writes: >->I have just ONE small problem: I have a Seikosha SL80IP printer >->which is said to be NEC P6 compatible. It prints nice graphic >->with the 1.3 NEC P6 printer driver. It's just that first it prints >->a zero! It must be something of the initializing sequence the >->printer doesn't recognize, but the all seven densities works fine. >->The first line gets shifted to the right buy that zero though. >-> >- There is no V1.3 NEC P6 printer driver (not from Commodore). If you >-mean the V1.3 Nec_Pinwriter driver (with over 30 drivers I HAVE to be this > ^^^^^^^^^^^^^ > Yes, of course. >- >- 00-01 \003P set pitch (10 or 12 cpi) >- 02-02 \022 set condensed fine (on or off) >- 03-05 \033W\000 enlarge off >- 06-08 \033ln set left margin to n >- 09-11 \033Qn set right margin to n >- 12-12 \015 carriage return >- 13-15 \033U1 set uni-directional mode >- 16-18 \033r0 black text > ^^^^^^ > I checked this one out. It's ESC, r and the ASCII char 0. >- 19-20 \0330 8 lpi spacing > >And there's more in what I get: > 21-23 \033r\000 black text again, this time with a null > instead of the ASCII digit 0. > 24-28 \033 etc... set graphic mode > >I didn't find any patch/zap program, so I couldn't try anything out, but >I suspect the first occurrence of "set black text", since it's a zero >that's getting printed. >- >- Perhaps one of these sequences is not valid on your printer. You might >-be able to use NewZap to look for the sequence: >- >- "\033P\022\033W\000\033ln\033Qn\015\033U1\033r0\0330" >- >- and null out any codes which your printer does not understand. I >-should warn you though that the printer driver fills in fields 1, 2, 8, 11, >-and 15 and will overwrite any value you put there. > >Yes, I will look for a patch program to try it out. But it sure loo >like it was something of the normal confusion with printer codes: "Is >this zero a NULL or the digit zero? - we better make two commands each >with one of them!" :-) > Referring to the above... 16-18 \033r0 the 0 is an ascii zero NOT a NULL (I use \000 to represent NULL) > 21-23 \033r\000 black text again, this time with a NULL > instead of the ASCII digit 0. Whoops! Looks like you found a bonafide bug! Yuch! That first 0 should be a NULL and not an ascii 0. I guess that most Pinwriters just ignore it. Sorry.