Subject: misc/188: Default map3270 file is broken for vt100's and xterm's
To: None <gnats-admin>
From: None <Mark_Weaver@brown.edu>
List: netbsd-bugs
Date: 03/31/1994 20:20:14
>Number:         188
>Category:       misc
>Synopsis:       Default map3270 file is broken for vt100s and xterms
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    gnats-admin (Misc Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Mar 31 20:20:07 1994
>Originator:     Mark Weaver
>Organization:
--------------------------------------------------------------------
Email: Mark_Weaver@brown.edu           | Brown University
PGP Key: finger mhw@cs.brown.edu       | Dept of Computer Science
>Release:        current-940331
>Environment:

System: NetBSD cis-ts3-slip4.cis.brown.edu 0.9a EXCELSIOR#0 i386

>Description:

	The included map3270 file is broken for vt100s and xterms.
	In particular, the arrow keys don't work and the backspace
	key goes down one line.  The "vt220", "vt320", and "xterm"
	terminal types aren't even recognized.

>How-To-Repeat:

	Use tn3270 to log onto a mainframe with a vt100, and try using
	the arrow keys or the delete key.  With a vt220, vt320, or xterm,
	try doing anything fancy at all.

>Fix:

The following fix adds vt220, vt320, and xterm to act like a vt100,
makes '^?' do a delete instead of a new-line, and makes the arrows
keys do the right thing even if you're not in cursor-key mode.

diff -u  src/share/termcap/map3270.mhw1 src/share/termcap/map3270
--- src/share/termcap/map3270.mhw1	Fri Dec 17 01:44:28 1993
+++ src/share/termcap/map3270	Wed Mar 30 22:36:23 1994
@@ -617,20 +617,20 @@
     indent = '\El' | '\EL';
     undent = '\Eh' | '\EH';
 } # end of tvipt
-vt100 | vt100nam | pt100 | vt125 | vt102 | direct831 | tek4125 | pcplot |        microvax{
+vt100 | vt100nam | pt100 | vt125 | vt102 | direct831 | tek4125 | pcplot |        microvax | vt220 | vt320 | xterm{
 enter = '^m';
 clear = '^z' | '\EOM';
 
-nl = '^?';
+nl = '^j';
 tab = '^i';
 btab = '^b';
-left = '^h' | '\EOD';
-right = '^l' | '\EOC';
-up = '^k' | '\EOA';
-down = '^j' | '\EOB';
+left = '^h' | '\E[D' | '\EOD';
+right = '^l' | '\E[C' | '\EOC';
+up = '^k' | '\E[A' | '\EOA';
+down = '\E[B' | '\EOB';
 home = '\EOn';
 
-delete = '^d';
+delete = '^d' | '^?';
 eeof = '^e';
 einp = '^w';
 insrt = '^ ' | '\E ';
>Audit-Trail:
>Unformatted:


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