Subject: tn3270 fixes
To: None <current-users@sun-lamp.cs.berkeley.edu>
From: None <Mark_Weaver@brown.edu>
List: current-users
Date: 02/19/1994 17:02:09
Here are some fixes for tn3270.  First, map3270.[c5] seemed to think
the map3270 file was in /etc instead of /usr/share/misc.  Second, the
vt100 entry in map3270 was messed up such that the cursor keys usually
wouldn't work.  I modified the entry to look more like the sun entry,
so it actually works now.

	Mark
--------------------------------------------------------------------
Email: Mark_Weaver@brown.edu           | Brown University
PGP Key: finger mhw@cs.brown.edu       | Dept of Computer Science


diff -u  src/usr.bin/tn3270/ascii/map3270.c.mhw1 src/usr.bin/tn3270/ascii/map3270.c
--- src/usr.bin/tn3270/ascii/map3270.c.mhw1	Fri Dec 17 02:19:01 1993
+++ src/usr.bin/tn3270/ascii/map3270.c	Sat Feb 19 16:49:29 1994
@@ -905,7 +905,7 @@
 		GotIt = Position(environPointer, keybdPointer);
 	    }
 	    if (!GotIt) {
-		GotIt = Position("/etc/map3270", keybdPointer);
+		GotIt = Position("/usr/share/misc/map3270", keybdPointer);
 	    }
 	}
 	if (!GotIt) {
@@ -913,7 +913,7 @@
 		GotIt = Position(environPointer, "unknown");
 	    }
 	    if (!GotIt) {
-		GotIt = Position("/etc/map3270", keybdPointer);
+		GotIt = Position("/usr/share/misc/map3270", keybdPointer);
 	    }
 	}
 	if (!GotIt) {
diff -u  src/usr.bin/tn3270/ascii/default.map.mhw1 src/usr.bin/tn3270/ascii/default.map
--- src/usr.bin/tn3270/ascii/default.map.mhw1	Fri Dec 17 02:19:01 1993
+++ src/usr.bin/tn3270/ascii/default.map	Sat Feb 19 16:49:55 1994
@@ -35,7 +35,7 @@
 
 /* default.map3270:  This file is the system default for the key sequence
  * if neither the user's TERM nor "unknown" are found in either of
- * MAP3270 or /etc/map3270.
+ * MAP3270 or /usr/share/misc/map3270.
  *
  *
  */
diff -u  src/usr.bin/tn3270/mset/map3270.5.mhw1 src/usr.bin/tn3270/mset/map3270.5
--- src/usr.bin/tn3270/mset/map3270.5.mhw1	Sat Feb  5 05:16:54 1994
+++ src/usr.bin/tn3270/mset/map3270.5	Sat Feb 19 16:51:30 1994
@@ -231,7 +231,7 @@
 .SH A SAMPLE ENTRY
 The following entry is used by
 tn3270(1) when unable to locate a reasonable version in the
-user's environment and in /etc/map3270:
+user's environment and in /usr/share/misc/map3270:
 .sp
 .nf
         name {          # actual name comes from TERM variable
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	Sat Feb 19 16:56:57 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 ';

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