[comp.lang.postscript] how to properly terminate an emulator

terry@sunquest.UUCP (Terry Friedrichsen) (07/27/90)

I got so much help with my last question that I thought I'd try again.

I wrote an emulator which runs in our QMS PS 810 laser printer.  The
host software sends a control-D down the serial line, which the emulator
catches with the usual "{ readline } stopped" mechanism.

This causes the emulator to terminate.

Question 1:  should the emulator do a "quit" or "stop" or some such thing
at that point?

Question 2:  the PostScript interpreter still times out 30 seconds after
my emulator stops, presumably because IT hasn't seen any kind of "end of
job" indication.  How can I prevent this from occurring?  It seemed to me
that termination of the PostScript program ought to have clued the interpreter
that the job was finished, but that apparently isn't so.

Thanks for any additional help you folks can provide.  I really appreciate
the time you've taken to respond to my previous questions.

Terry R. Friedrichsen
uunet!sunquest!terry
TERRY@SUNQUEST.COM
TERRY@SDSC.EDU  (alternate address; I live and work in Tucson)