Subject: Keyboard Lock feature

From: Mary Aplin <[email-masked]>
Date: Thu, 20 Apr 1995 12:17:41 +0200 (MET DST)

Hello Pine-ers!

I posted this message a couple of weeks ago, but didn't get any 
response;I'll try again:

Is there a way to disable the KBlock feature of pine (available at the 
main menu.) 

Also, does anyone know of a way to direct the unix print command to print 
to a local printer, similar to the way pine can print to "attached-to-ansi"?

Thanks

Mary Aplin
Loyola University, New Orleans

---

From: Don Sugarman <[email-masked]>
Date: Thu, 20 Apr 1995 13:12:02 -0400 (EDT)

> to a local printer, similar to the way pine can print to "attached-to-ansi"?

We created a printer called printerm with an interface file called termpr
that activates the print-thru (echo \033[5i) cats the file then closes the
print-thru ( echo \033[4i).  Interface file is appended, for reference. 

Don Sugarman
[email-masked]

# File /usr/spool/lp/model/termpr
#ident	"@(#)/usr/spool/lp/model/dumb.sl 1.3 3.2 09/29/87 29351 AT&T-SF"
# lp interface for dumb line printer
#
echo "\033[5i"
sleep 2
x="XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
echo "\014\c"
banner "$2"
echo "\n"
user=`grep "^$2:" /etc/passwd | line | cut -d: -f5`
if [ -n "$user" ]
then
	echo "User: $user\n"
else
	echo "\n"
fi
echo "Request id: $1    Printer: `basename $0`\n"
date
echo "\n"
if [ -n "$3" ]
then
	banner $3
fi
copies=$4
echo "\014\c"
shift; shift; shift; shift; shift
files="$*"
i=1
while [ $i -le $copies ]
do
	for file in $files
	do
		cat "$file" 2>&1
		echo "\014\c"
	done
	i=`expr $i + 1`
done
echo "\033[4i"
exit 0