Subject: wyse50 terminal and pine

From: [email-masked] (Hafezzadeh)
Date: Wed, 8 Mar 1995 09:01:45 -0700

Hello, all
We have installed pine 3.91 on our SunOS4.1.x and it runs great.  The only
problem is when we try to run it on a pc with the wyse50 terminal emulator or
on a wyse50 terminal using the unix host, the look of pine changes. The arrow
keys don't work properly and some other problem as well.  Is  pine not suppose
to work with the wyse50 terminal emulator and if not is there a way around it.

Thanks so much for any respond....

-Sue

---

From: "Brian P. Hampson" <[email-masked]>
Date: Wed, 8 Mar 1995 11:45:44 -0800 (PST)

> Thanks so much for any respond....

I got this from someone else...but maybe someone might consider adding it 
to the FAQ
-------------------------------------------cut here----------------------

#!/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
	pine1 $*  
	clear
	exit 
fi
	trap wpinereset 0 1 2 3 15
	wpinesetup
	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                 | 
   |                                                                      |
   ------------------------------------------------------------------------