Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!cs.utexas.edu!texbell!chinacat!woody From: woody@chinacat.Unicom.COM (Woody Baker @ Eagle Signal) Newsgroups: comp.lang.postscript Subject: Re: EOF indication to PostScript printer Summary: welll... Keywords: file end EOF big secret Message-ID: <1422@chinacat.Unicom.COM> Date: 25 Jul 90 04:17:34 GMT References: <5556@sunquest.UUCP> Distribution: usa Organization: a guest of Unicom Systems Development, Austin Lines: 33 In article <5556@sunquest.UUCP>, terry@sunquest.UUCP (Terry Friedrichsen) writes: > Help! I've R'ed The FM's until my blood pressure won't take it any more. > > I have a QMS PS-810 PostScript laser printer, and the green, blue, and red > Adobe PostScript books, as well as the book for the QMS itself. I've even > opened all four books. > > EVERY ONE of them talks about what happens when the printer "receives an > EOF indication" (we use the serial interface), and you can even find > example PostScript code to detect it. All the books then blithely continue > the narrative, as if they have revealed all, and you are therefore ready > to proceed to the next topic. > > NONE of the blasted books tell me what in bloody blue (green, red) blazes > to SEND DOWN THE SERIAL LINE to give the printer this mystical, magical > "EOF indication"!!! What is the big secret here, anyway? I'm an adult; I've looked for it in vain also. For a fact, ^D i.e. 0x04 will terminate a job, but I'm not sure about the EOF. I have a postscript PS-810 also. I wrote a diablo emulator, as well as a simple epson emulator. I finaly took the approach of taking the CAN character (clear buffer on an Epson) and used it to drop into postscript so that I can escape the emulator, drop into postscript, do things, then get back into the emualtor. That worked fairly well. If you invoke the HP emulation mode from software (hplj ) you can toggle back to postscript with a ^D. Adobe orginaly told me that it was 0x7f 0x4 but I found that the 0x7f was not needed. Since they are manipulating the port transparently, they check for ^D outside of a graphics string and quit. Cheers Woody I don't think it's an elementary question at all...