NetBSD Problem Report #188
From gnats Thu Mar 31 20:10:11 1994
Received: from cis-ts3-slip4.cis.brown.edu (root@cis-ts3-slip4.cis.brown.edu [128.148.19.58]) by sun-lamp.cs.berkeley.edu (8.6.8/8.6.6) with ESMTP id UAA17888 for <gnats-bugs@sun-lamp.cs.berkeley.edu>; Thu, 31 Mar 1994 20:10:02 -0800
Message-Id: <199404010410.XAA02196@cis-ts3-slip4.cis.brown.edu>
Date: Thu, 31 Mar 1994 23:10:07 -0500
From: Mark_Weaver@brown.edu
Reply-To: Mark_Weaver@brown.edu
To: gnats-bugs@sun-lamp.cs.berkeley.edu
Subject: Default map3270 file is broken for vt100's and xterm's
X-Send-Pr-Version: 3.2
>Number: 188
>Category: misc
>Synopsis: Default map3270 file is broken for vt100s and xterms
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: gnats-admin
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Mar 31 20:20:07 +0000 1994
>Closed-Date: Fri Apr 01 09:36:07 +0000 1994
>Last-Modified:
>Originator: Mark Weaver
>Release: current-940331
>Organization:
--------------------------------------------------------------------
Email: Mark_Weaver@brown.edu | Brown University
PGP Key: finger mhw@cs.brown.edu | Dept of Computer Science
>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 ';
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed
State-Changed-By: cgd
State-Changed-When: Fri Apr 1 01:36:07 PST 1994
State-Changed-Why:
fixed
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.