jcorder@Alix.UUCP (08/09/87)
Hello Net People:
In Ami Motro's article, Ami states a problem with
the connection of an "IBM Graphics Printer (actually an
Epson)" to the parallel port (/dev/tty15). Sorry I did
not have an IBM Printer around, however I did make an
Epson FX-286 work with an AT&T 3B2/300 with UNIX SYS V 2.
I have enclosed the file
(/usr/spool/lp/interface/dqp10_1) with the appropriate
modifications. This interface assumes that the Epson
FX-286 printer is attached to parallel port (/dev/tty15).
It also assumes that the system variable $LPDEST is
(dqp10_1). If any of these assumption are not true this
file will not work. To set your LPDEST to dqp10_1 simply
enter the following command at the prompt "$":
LPDEST=dqp10_1;export LPDEST
This command line can be made a permanent part of
your (.profile), if you want the Epson FX-286 printer as
your destination printer. This interface works with
nroff. I have tried the following nroff commands:
ie: .ul .sp# .ce .in#
Since my 3B2 is not set up for any kind of
graphics, I have not tried this aspect. I have not given
this file a complete test. It is something that I have
thrown together in a few minutes. Please do not take it
as your total answer. I do not give any warrenties with
this file. Use it at your own risk. In other words, try
it on a paper other than the one the chairman of the
board needs by two:-)
_______
| | James D. Corder
|UNIX!| EZ-C-Lite Inc.
--------- P.O. Box 27473
\~. .~/ Columbus, Ohio 43227
( * ) ...cbosgd!osupyr!Alix!jcorder
----| O |----
\ v /
--- \ / ---
V Your comments may someday become part of a book!
----------------------------------^cut^-----------------------------------------
# @(#)dqp10 1.1
# lp interface for DQP-10 Matrix Printer
#
#
stty -parenb -parodd 9600 cs8 cread clocal ixon 0<&1
stty -ignbrk -brkint -ignpar -parmrk -inpck -istrip 0<&1
stty -inlcr igncr -iuclc -ixany 0<&1
stty -opost -ocrnl -onlcr -onlret raw tab3 0<&1
id=$1
name=$2
title=$3
copies=$4
shift; shift; shift; shift; shift
files="$*"
i=1
while [ $i -le $copies ]
do
for file in $files
do
case $file
in
*.g|*.n|*.mm)
stty -opost 0<&1
;;
esac
cat "$file" | tr -d "\015" 2>&1
done
i=`expr $i + 1`
done
echo "\014\c"
exit 0