Date: Wed, 20 May 1998 14:51:45 +1000 From: Dale Walker - Manager <dale@icr.com.au> To: freebsd-questions@FreeBSD.ORG Subject: Wy60 attached printer Message-ID: <199805200451.OAA03941@sparc.icr.com.au>
next in thread | raw e-mail | index | archive | help
I want to set up a wyse60 terminal on a FreeBSD box to do local printing (ie. via the aux port on the terminal)....
I am currently using this as an interface file:
------------------------------------
#!/bin/sh
# setup string
termport="/dev/ttyd1" # port for your terminal
penable="\017\033d#" # codes to enable printer for Wyse 60
pdisable="\024\016" # codes to disable printer for Wyse 60
lpnull="/dev/null" # dummy regular file or dedicated device file
sttystr="9600 ixon -ixany ixoff opost onlcr" # modify for your printer if necessary
# redirect std in, std out to termport std err to lpnull
exec <$termport >$termport 2>$lpnull
# If it is necessary to change the baud rate or other stty settings for
# your serial printer modify the sttystr above.
sttysave=`stty -g`
stty $sttystr
# escape sequence for the terminal to lock the keyboard and turn on transparent
# print mode. You must first lock the keyboard then turn on transparent print
printf "$penable"
printf "\014" && cat && printf "\014"
# escape sequence for the terminal to turn off transparent print mode and
# unlock the terminal. First turn off transparent print then unlock keyboard.
echo "$pdisable"
# reset stty settings
stty $sttysave
exit 0
-----------------------------------------------
with a /etc/printcap entry of:
---------------------------------
local:\
:sh:if=/usr/local/libexec/lprint.sh:\
:lp=/dev/ttyd1:sd=/var/spool/lpd/local:lf=/var/log/lpd-errs:
---------------------------------
however, it doesn't seem to work... The jobs queue OK, but don't go through to the terminal/printer......
Any ideas????
Cheers,
Dale
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Dale Walker dale@icr.com.au
Independent Computer Retailers (ICR) http://www.icr.com.au
Ph: +61 7 4636 4625 Fax: +61 7 4636 3513 helpdesk@icr.com.au
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
"Actually, you just think that's a telephone. Really, it's the
alarm that rings whenever I get out of my chair." -- E.S.
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199805200451.OAA03941>
