Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!bionet!ig!ames!pacbell!att!homxb!mtuxo!att!alberta!calgary!spycal!sdscal!keith From: keith@sdscal.UUCP (Keith Jones) Newsgroups: comp.lang.postscript Subject: Re: Setting emulation mode through software on a nec LC-890 Summary: SilentWriter LC 890, to postscript and back (to HP Laserjet) Message-ID: <191@sdscal.UUCP> Date: 21 Apr 89 17:50:36 GMT References: <1240@cmtl01.UUCP> Organization: Stream Data Systems, Calgary, Alberta Lines: 49 In article <1240@cmtl01.UUCP>, mdorion@cmtl01.UUCP (Mario Dorion) writes: > > ... > Is there a way from HP or Diablo emulation mode to 'escape' into postscript so > that I can change the mode back??? > > -- > Mario Dorion | E-mail: xios!mario@cmtl01.UUCP > XIOS Systems | ...uunet!attcan!cmtl01!xios!mario > Montreal, Canada | > 1 (514) 744-3410 |"All the young dudes carry the news ..." - Bowie We also have an NEC LC 890 laser printer. We are running Unix System V and have the printer connected through the lp scheduler. The interface file that we have is designed to run jobs to the laserjet emulation (which is our default setting). Sending the option '-opostscript' to 'lp', we set it up into postscript mode and can then dump postscript programs to the printer. Here is the stuff that you will find relevant (I hope): To run a postscript batch job (starting in HP Laserjet emulation): echo "\033\0177\c" echo "0end" echo "Wait 2" echo "\004\c" sleep 10 echo "statusdict begin" echo "5 setsoftwareiomode" echo "end" ... send postscript file to the printer ... echo "\004\c" The first bit takes the (pseudo-) HP Laserjet printer into postscript mode, signals end-of-job, and then it sets the job back to HP Laserjet mode. As documented in the manual, this change doesn't take place until the end of the current job. There are some problems with this in that HP Laserjet jobs and Postscript jobs cannot be intermixed well without occasionally leaving the printer in postscript batch mode. Keith Jones Stream Data Systems Calgary, Alberta, Canada 1 (403) 233-0690 I have no .signature because my pen keeps scratching up my monitor.