Subject: Ghostscript, again.
To: port-mac68k <port-mac68k@netbsd.org>
From: Matthew Reilly <mjreilly@flashcom.net>
List: port-mac68k
Date: 07/09/1999 22:54:36
I'm sorry to post more Ghostscript questions but I've searched the
archives and couldn't find any answers. I'm trying to get Ghostscript
5.50 to work with my Stylus 740 connected to my Quadra 700. I've got the
printer hooked up to the modem port. I applied Bill's serial speed patch
and set the default port speed to 230400, a speed the printer seems to
like when I use a ZTerm. When I boot this is the message I get about the
serial ports:

	zsc0 at obio0 chip type 0 
	zsc0 channel 0: d_speed 230400 DCD clk 0 CTS clk 0
	zstty0 at zsc0 channel 0
	zsc0 channel 1: d_speed   9600 DCD clk 0 CTS clk 0
	zstty1 at zsc0 channel 1 (console)

Here's my printcap:

	lp|stylus740|Epson Stylus 740:\
     :lp=/dev/tty00:sd=/var/spool/lpd:lf=/var/log/lpd-errs:\
     :br#230400:pc#500:xc#0177777:ms=-parity,ixon,-opost:sh:\
     :if=/usr/local/libexec/lpr/stc-if:

And here's the if file I copied from one Frederick Bruckman posted to
the list a while back:

	#!/usr/pkg/bin/bash
	#
	# "if" filter to invoke Ghostscript driver for Epson Stylus Pro,
	#
	# Use: lpr [-l] -s file...
	#
	#       <default>       print postscript level 1 and 2 and pdf files
	#       -l              send ESC/P 2 rendered file to printer
	#
	case $1 in
	        -c) cat /dev/stdin
	        ;;
	        *) /usr/pkg/bin/gs -q -sOutputFile=- "@stc740p.upp" /dev/stdin
-c quit
	#       *) /usr/pkg/bin/gs -q -sOutputFile=- "@stc740ih.upp" /dev/stdin
-c quit
	        ;;
	esac

When I print a postscript file, GS fires us, chews on it for a while,
the printer light starts blinking and then it starts spitting out
garbage. I know GS is working because I'm able to render .ps files to
JPEGS no problem so it's got to be something to do with the way the
printer is configured. If anyone has any clue, please let me know, it's
just not as rewarding just printing out of MacOS, besides, it's not postscript.

cheers, 


Matthew Reilly