Subject: PINE on Wyse 50 terminals

From: [email-masked]
Date: Fri, 31 Mar 1995 01:07:23 GMT

I've been keeping tabs on this news group for a long time now, hoping to see
someone else ask this question, but haven't.  Hope this doesn't mean it's too
stupid to bring up . . .

How can I get PINE to work acceptably on a Wyse 50 terminal?  The docs
mention using a substitute for protected mode -- I don't know what that is.
I've tried all the hardware settings I can think of, with no good results.

Can someone tell me what to do?  I mean, specifically?  Or is this hopeless?

Thanks in advance.		

bob erb -- [email-masked]

---

From: "Brian P. Hampson" <[email-masked]>
Date: Fri, 31 Mar 1995 16:50:20 -0800 (PST)

> I've tried all the hardware settings I can think of, with no good results.

The script below is designed to work with WYSE terminals - Someone else 
wrote the original.

#!/bin/sh
wpinesetup(){

echo "\nSetting up Wyse arrow and function keys..."

# Next/Prev Page

echo "\033Z1r \0177\c"
echo "\033Z1w-\0177\c"

# Char/Line delete

echo "\033Z15\04\0177\c"
echo "\033Z16\013\0177\c"

# Arrow keys

echo "\033Z1+\033[A\0177\c"
echo "\033Z1,\033[B\0177\c"
echo "\033Z1.\033[C\0177\c"
echo "\033Z1-\033[D\0177\c"

echo "Done\n"
}

wpinereset() {

echo "\nResetting standard Wyse arrow/function keys..."

#t/Prev Page

echo "\033Z1r\0177\c"
echo "\033Z1w\0177\c"

# Char/Line delete

echo "\033Z15\0177\c"
echo "\033Z16\0177\c"

# Arrow keys

echo "\033Z1+\0177\c"
echo "\033Z1.\0177\c"
echo "\033Z1,\0177\c"
echo "\033Z1-\0177\c"

echo "Done.\n"
}
if [ "$TERM" != "wyse50" ]
then
	/local/bin/pine1 $*  
	clear
	exit 
fi
	trap wpinereset 0 1 2 3 15
	wpinesetup
	/local/bin/pine1 $*  
	wpinereset
	clear 
	exit

--------------------------------------------------------------------------

B.

   ------------------------------------------------------------------------
   |Brian P. Hampson                  Internet: [email-masked]      |
   |System Administration,                      			  |
   |Analytical Service Labs           Fidonet : Brian Hampson 1:153/733   |
   |Vancouver, BC                                                         |
   |+604-253-4188                                                         |
   |               Specialists in Environmental Chemistry                 | 
   |                                                                      |
   ------------------------------------------------------------------------