ITEM: AC3477L

WYSE 50 terminal emulation. tn3270



Question:

Needs to know how to configure keyboard as a WYSE 50. The terminal is a 
WYSE 50. He set up WYSE 50 definition and started making changes. The definition
was copied from the top definition of the 3270 file for a WYSE 60-AT terminal.
He tried to first define the "enter" and cursor control keys (arrows).
He used a keyboard (AS 400 connectibility) utility to help do this.
\\r is what is being put in to map the enter key. The arrow keys were 
defined and they worked to move the cursor in the anticipated direction.
The enter key will not work. The "enter" key seems to work as a line feed, 
but does not work like its supposed to with respect to his mainframe (ES9000). 

Response:

D:      Terminal goes to RISC which telnets to mainframe through a token ring. 

Response:

Trying to use Wyse-50 ascii terminal via RISC to MVS TCP/IP V2.2
system using tn3270.

tn3270 does not recognize TERM type wyse50.

Changed wyse to emulation mode tvi925.  Set TERM=tvi925 on AIX.  Now
tn3270 negotiates a terminal type it understands (/etc/map3270 entry
exists for tvi925).  Now enter key works but don't have function keys.

Response:

Further work to define function keys vi map3270 file unsuccessful.  Currently
pursuing use of telnet which utilizes /etc/3270keys file.  Redefined wyse50
terminal to use native wyse50 mode, TERM=wyse50, writing new entry for
/etc/3270keys to query for terminal type wyse50 and point to/load new file
/etc/wyse50keys.  Am customizing /etc/wyse50keys file to define all required
function keys as well as proper "enter" key, clear key (or key sequence),
and arrow keys.  

Response:

Making progress.  Now have function keys working with tn to a VM host,
including a clear key. 

Response:

The following procedure will provide 12 "normal" function keys, a clear key
via F13, Insert & Delete keys as defined on the Wyse50 keyboard, backspace,
and up, right, left arrow keys as expected,  down cursor functional via
"control n" key sequence for a tn or telnet session to an IBM host.  Testing
was performed on a VM host (as MVS host was unavailable).

What you will need to do:

Configure the Wyse 50, edit /etc/map3270 file, create /etc/wyse50 keys file 
and a /usr/lib/nls/termmap/wyse.in file.
Details follow.

Use the shift & setup keys to program the wyse50 terminal as follows:
HANDSHAKE = XONXOFF, SCREEN = 80, CURSOR = BLOCK, BLINK? = OFF(OR ON - YOUR
CHOICE), MODE = FDX, KEYS? = US/UK, RET/ENTER = CR, COMPATIBLE MODE = WY50,
ENHANCE = OFF, SCRL = JUMP, STATUS = ON, S.SAVER = OFF(OR ON - YOUR CHOICE),
PROT = REV, TEST = OFF, BLK END = US/CR, AUTO NL = OFF, CR = CR, 
AUTO SCTL = ON, AUX BAUD R = (is not applicable to this application), 
DATA BIT = 8, STOP BIT = 1, PARITY BIT = NONE, MODEM PORT BAUD =9600. 

Press the funct key while in set up mode.  Program the function keys:

"F1= "will be displayed.  What you'll do is hit the key sequences detailed below
then hit the next Fkey to be programmed.  You'll see the character string for
each Function key you program in the "Fx=   " field.  You will not see the literal
of the keys you hit.

F1= control a  shift 2  -> (you'll hit the control key and the 'a' key together,
                           then the shift and 2, for example, which generate
                           the @ symbol)
F2= control a  shift a
F3= control a  shift b
F4= control a  shift c
F5= control a  shift d
F6= control a  shift e
F7= control a  shift f
F8= control a  shift g
F9= control a  shift h
F10= control a  shift i
F11= control a  shift j
F12= control a  shift k         
(F1 - F12 will provide the "normal" function keys defined to your host system.)
F13= control z                  (clear key)

When you've programmed each function key, hit the "func" key again, then
hit shift & setup to exit the setup mode, key in "a" to save both the terminal
parameters AND the function keys you just defined.

Modifiy the tty parameters for the terminal to match the speed, parity, etc.on
the RISC (via smit if you like) as well as ensuring the terminal type is wyse50.
Check user session with "echo $TERM", it should be wyse50.

Copy the /etc/3270.keys file to a .3270keys file in the home directory of the
user that will be running telnet:  cp /etc/3270.keys /$HOME/.3270keys, OR
make a backup copy of the /etc/3270.keys file and modify /etc/3270.keys
for system wide use, eliminating the need for each user to have a copy
in their home directories.

Edit the .3270keys file (or /etc/3270.keys) to add an else if statement 
to the test of TERM variable:
.if hft or hft-m or ibm5151 or ibm6153 or ibm5154 or ibm6153-90 or ibm6153-40 or
   ibm6154 or ibm6154-90 or ibm6154-40 or ibm6155 or ibm6155-113 or
   ibm6155-56 or ibm5081 or ibm5081-113 or ibm5081-56 or
   hft.U or ibm5151.U or ibm6153.U or ibm5154.U or ibm6153-90.U or
   ibm6153-40.U or ibm6154.U or ibm6154-90.U or ibm6154-40.U or
   ibm6155.U or ibm6155-113.U or ibm6155-56.U or ibm5081.U or
   aixterm or aixterm-m or jaixterm or jaixterm-m or
   ibm5081-113.U or ibm5081-56.U or hft-m-old or aixterm-m-old or
   aixterm-old or hft-nam-old or hft-c-old or hft-old  load /etc/3270keys.hft
 else if wyse50  load /etc/wyse50keys

else print NOBINDINGS

Here you're adding the 'else if wyse50  load /etc/wyse50keys' line.  This is 
a test of the TERM variable set in the users current environment and an
instruction to load a customized key definition file.

Create the /etc/wyse50keys  (or other filename if preferred as long it
matches the entry in your .3270keys file):  (This is the customized key 
definition file that .3270keys will point to.)

\#***************************************************
\#      3278/79       wyse50 sequence  wyse 50 keys *
\#      FUNCTION                                    *
\#***************************************************

bind    clear           "\^Z"       \#  Clear
bind    pf1             "\^a@"       \#  f1
bind    pf2             "\^aa"       \#  f2
bind    pf3             "\^ab"       \#  f3
bind    pf4             "\^ac"       \#  f4
bind    pf5             "\^ad"       \#  f5
bind    pf6             "\^ae"       \#  f6
bind    pf7             "\^af"       \#  f7
bind    pf8             "\^ag"       \#  f8
bind    pf9             "\^ah"       \#  f9
bind    pf10            "\^ai"       \#  f10
bind    pf11            "\^aj"       \#  f11
bind    pf12            "\^ak"       \#  f12
bind    return          "\^M"            \#  Enter
bind    insertmode      "\^[Q"           \#  Insert
bind    delete          "\^[W"           \#  Delete
bind    eraseinput      "\\eK"           \#  ErInp
bind    left            "\^H"            \#  Left Arrow
bind    up              "\^K"            \#  Up Arrow
bind    down            "\^N"            \#  Down Arrow
bind    right           "\^L"            \#  Right Arrow
bind    tab             "\^I"            \#  Tab
bind    backspace       "\^[I"           \#  Backspace

\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#

Create a file:  /usr/lib/nls/termmap/wyse.in  file:

\\x0a\\x0a:\\x0e\\x0a

(This will map the key sequence  "control n"  to the down function.)

Execute:  setmaps -i wyse          (points to the wyse.in file above)

Execute  "tn hostname".


Support Line: WYSE 50 terminal emulation. tn3270 ITEM: AC3477L
Dated: December 1994 Category: N/A
This HTML file was generated 99/06/24~13:30:30
Comments or suggestions? Contact us