From owner-freebsd-questions Tue May 19 21:51:58 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id VAA10519 for freebsd-questions-outgoing; Tue, 19 May 1998 21:51:58 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from sparc.icr.com.au (root@sparc.icr.com.au [203.17.49.112]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id VAA10507 for ; Tue, 19 May 1998 21:51:52 -0700 (PDT) (envelope-from dale@icr.com.au) Received: from sparc.icr.com.au (dale@localhost.icr.com.au [127.0.0.1]) by sparc.icr.com.au (8.8.8+3.0Wbeta13/8.8.8) with ESMTP id OAA03941 for ; Wed, 20 May 1998 14:51:45 +1000 (EST) (envelope-from dale@icr.com.au) Message-Id: <199805200451.OAA03941@sparc.icr.com.au> To: freebsd-questions@FreeBSD.ORG Subject: Wy60 attached printer Date: Wed, 20 May 1998 14:51:45 +1000 From: Dale Walker - Manager Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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