NetBSD Problem Report #47674

From www@NetBSD.org  Wed Mar 20 23:00:47 2013
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
	by www.NetBSD.org (Postfix) with ESMTP id B486863E6FA
	for <gnats-bugs@gnats.NetBSD.org>; Wed, 20 Mar 2013 23:00:46 +0000 (UTC)
Message-Id: <20130320230045.F0AFB63E6FA@www.NetBSD.org>
Date: Wed, 20 Mar 2013 23:00:45 +0000 (UTC)
From: uwe@NetBSD.org
Reply-To: uwe@NetBSD.org
To: gnats-bugs@NetBSD.org
Subject: vt220 terminfo description seems incorrect
X-Send-Pr-Version: www-1.0

>Number:         47674
>Category:       misc
>Synopsis:       vt220 terminfo description seems incorrect
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    misc-bug-people
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Mar 20 23:05:00 +0000 2013
>Closed-Date:    Sun Apr 07 15:07:04 +0000 2013
>Last-Modified:  Sun Apr 07 15:07:04 +0000 2013
>Originator:     Valery Ushakov
>Release:        NetBSD 6.1
>Organization:
>Environment:
>Description:
I use putty with TERM=vt220.  I've upgraded one of my machines to
netbsd6 recently and noticed that cursor keys started to misbehave in
some apps, e.g. in GNU screen copy mode.

After a bit of poking around I found that the terminfo description of
vt220 seems incorrect.  I assume we get it from ncurses as upstream
and the problem is present there too.

* It declares cursor keys to transmit normal \E[ aka CSI sequences:

    kcuu1=\E[A,
    kcud1=\E[B,
    kcuf1=\E[C,
    kcub1=\E[D,

* But it declares init string that switches them to applicaction mode
  that uses \EO aka SS3 sequences:

    is2=...\E[?1h...,

http://vt100.net/docs/vt220-rm/chapter2.html#S2.5.1
http://vt100.net/docs/vt220-rm/chapter4.html#S4.6.8
http://vt100.net/docs/vt220-rm/table3-2.html

>How-To-Repeat:
Use misc/screen package.
Run it with TERM=vt220.
Enter copy mode with C-a [ (assuming default C-a escape)
Try to use cursor keys.
Observe copy mode aborted.

>Fix:
Change is2 to use \E[?1l (normal mode) instead of \E[?1h (app mode).

>Release-Note:

>Audit-Trail:
From: Valery Ushakov <uwe@stderr.spb.ru>
To: Thomas Dickey <dickey@his.com>
Cc: gnats-bugs@NetBSD.org
Subject: Re: misc/47674: vt220 terminfo description seems incorrect
Date: Sun, 24 Mar 2013 01:03:52 +0400

 Hi, Thomas.

 gnats-bugs@ needs PR number in the subject to automatically updade
 PRs.  I'm replying to this with corrected subject to get it logged.

 On Sat, Mar 23, 2013 at 16:19:17 -0400, Thomas Dickey wrote:

 > I noticed this, and did some investigation - report seems valid (and
 > surprised that it was unnoticed so long).  I wrote a script, found some
 > other occurrences and will address those as well.


 Thanks for the confirmation.

 -uwe

From: Thomas Dickey <dickey@his.com>
To: Valery Ushakov <uwe@stderr.spb.ru>
Cc: Thomas Dickey <dickey@his.com>, gnats-bugs@NetBSD.org
Subject: Re: misc/47674: vt220 terminfo description seems incorrect
Date: Sun, 24 Mar 2013 11:06:01 -0400

 --4SFOXa2GPu3tIq4H
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline
 Content-Transfer-Encoding: quoted-printable

 On Sun, Mar 24, 2013 at 01:03:52AM +0400, Valery Ushakov wrote:
 > Hi, Thomas.
 >=20
 > gnats-bugs@ needs PR number in the subject to automatically updade
 > PRs.  I'm replying to this with corrected subject to get it logged.
 >=20
 > On Sat, Mar 23, 2013 at 16:19:17 -0400, Thomas Dickey wrote:
 >=20
 > > I noticed this, and did some investigation - report seems valid (and
 > > surprised that it was unnoticed so long).  I wrote a script, found some
 > > other occurrences and will address those as well.
 >=20
 >=20
 > Thanks for the confirmation.

 no problem (fixes were in yesterday's patch)

 --=20
 Thomas E. Dickey <dickey@invisible-island.net>
 http://invisible-island.net
 ftp://invisible-island.net

 --4SFOXa2GPu3tIq4H
 Content-Type: application/pgp-signature; name="signature.asc"
 Content-Description: Digital signature
 Content-Disposition: inline

 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.4.10 (GNU/Linux)

 iEYEARECAAYFAlFPFlkACgkQcCNT4PfkjttXTQCgm0jmvXerDkdNq2aJyu/LzV07
 tGIAoLnneCMJlfAxGy0souMXFPTNLBxg
 =z/Yd
 -----END PGP SIGNATURE-----

 --4SFOXa2GPu3tIq4H--

From: "Valeriy E. Ushakov" <uwe@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/47674 CVS commit: src/share/terminfo
Date: Fri, 29 Mar 2013 14:31:49 +0000

 Module Name:	src
 Committed By:	uwe
 Date:		Fri Mar 29 14:31:48 UTC 2013

 Modified Files:
 	src/share/terminfo: terminfo

 Log Message:
 Pull in fix for PR misc/47674 from ncurses:

 # 2013-03-23
 #	* change initialization for vt220, similar entries for consistency
 #	  with cursor-key strings (NetBSD #47674) -TD


 To generate a diff of this commit:
 cvs rdiff -u -r1.5 -r1.6 src/share/terminfo/terminfo

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

From: "Jeff Rizzo" <riz@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/47674 CVS commit: [netbsd-6] src/share/terminfo
Date: Sun, 31 Mar 2013 20:55:55 +0000

 Module Name:	src
 Committed By:	riz
 Date:		Sun Mar 31 20:55:54 UTC 2013

 Modified Files:
 	src/share/terminfo [netbsd-6]: terminfo

 Log Message:
 Pull up following revision(s) (requested by uwe in ticket #861):
 	share/terminfo/terminfo: revision 1.6
 Pull in fix for PR misc/47674 from ncurses:


 To generate a diff of this commit:
 cvs rdiff -u -r1.4.4.1 -r1.4.4.2 src/share/terminfo/terminfo

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

State-Changed-From-To: open->closed
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Sun, 07 Apr 2013 15:07:04 +0000
State-Changed-Why:
fixed


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2014 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.