From owner-freebsd-x11@FreeBSD.ORG Wed Jul 18 16:56:01 2007 Return-Path: X-Original-To: freebsd-x11@freebsd.org Delivered-To: freebsd-x11@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 4636616A401 for ; Wed, 18 Jul 2007 16:56:01 +0000 (UTC) (envelope-from yuri@darklight.org.ru) Received: from darklight.org.ru (darklight.org.ru [194.186.18.14]) by mx1.freebsd.org (Postfix) with ESMTP id EBF3513C461 for ; Wed, 18 Jul 2007 16:55:59 +0000 (UTC) (envelope-from yuri@darklight.org.ru) Received: from darklight.org.ru (yuri@darklight.org.ru [127.0.0.1]) by darklight.org.ru (8.14.1/8.14.1) with ESMTP id l6IGt0Ft051060 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Wed, 18 Jul 2007 20:55:06 +0400 (MSD) (envelope-from yuri@darklight.org.ru) Received: (from yuri@localhost) by darklight.org.ru (8.14.1/8.14.1/Submit) id l6IGsxX8051059 for freebsd-x11@freebsd.org; Wed, 18 Jul 2007 20:54:59 +0400 (MSD) (envelope-from yuri@darklight.org.ru) Date: Wed, 18 Jul 2007 20:54:59 +0400 From: Yuri Pankov To: freebsd-x11@freebsd.org Message-ID: <20070718165459.GA51027@darklight.org.ru> References: <20070718151204.GA49743@darklight.org.ru> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="ZGiS0Q5IWpPtfppv" Content-Disposition: inline In-Reply-To: <20070718151204.GA49743@darklight.org.ru> User-Agent: Mutt/1.5.16 (2007-06-09) X-Greylist: Sender is SPF-compliant, not delayed by milter-greylist-3.0 (darklight.org.ru [127.0.0.1]); Wed, 18 Jul 2007 20:55:06 +0400 (MSD) Subject: Re: xterm, ncurses and End key X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: X11 on FreeBSD -- maintaining and support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Jul 2007 16:56:01 -0000 --ZGiS0Q5IWpPtfppv Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Jul 18, 2007 at 07:12:04PM +0400, Yuri Pankov wrote: > Hi, >=20 > I've noticed that applications linked with system ncursesw library > don't recognize End key (mutt says 'Key not bound', mocp - 'bad > command', for example). Using mutt's `what-key' function I've found that > it send 0601 code, and not 0550, as specified in > src/contrib/ncurses/include/Caps for `kend'. Though changing this entry > to contain 0601 works in xterm, it breaks End key when apps are used in > syscons. Attached patch for termcap seems to solve this problem > (changing `kslt' and `kll' terminfo entries), but is this correct > solution, or there's something wrong with my setup? >=20 > Running -CURRENT/amd64. >=20 >=20 > TIA, > Yuri > --- share/termcap/termcap.src.orig 2007-07-18 17:58:45.000000000 +0400 > +++ share/termcap/termcap.src 2007-07-18 18:04:24.000000000 +0400 > @@ -2805,8 +2805,8 @@ > :k1=3D\EOP:k2=3D\EOQ:k3=3D\EOR:k4=3D\EOS:\ > :k5=3D\E[15~:k6=3D\E[17~:k7=3D\E[18~:k8=3D\E[19~:\ > :k9=3D\E[20~:k;=3D\E[21~:F1=3D\E[23~:F2=3D\E[24~:\ > - :kH=3D\EOF:@7=3D\EOF:kI=3D\E[2~:\ > - :kh=3D\EOH:*6=3D\EOF:kP=3D\E[5~:kN=3D\E[6~:\ > + :kH=3D\E[4~:@7=3D\EOF:kI=3D\E[2~:\ > + :kh=3D\EOH:*6=3D\E[4~:kP=3D\E[5~:kN=3D\E[6~:\ > :ku=3D\EOA:kd=3D\EOB:kr=3D\EOC:kl=3D\EOD:Km=3D\E[M:tc=3Dxterm-basic: > # > # This chunk is used for building the VT220/Sun/PC keyboard variants. And I must admit that I don't understand what actually happens here - if I just delete kH and *6 entries, End key works fine. Can someone enlighten me? (sorry for lots of replies to myself). TIA, Yuri --ZGiS0Q5IWpPtfppv Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4 (FreeBSD) iD8DBQBGnkXjeoAklVFrLdgRAtWPAJ9zhPzzQ/14fx3b0VaC5Q60tTgGQgCeK5OG 5xZbqlGqPqbWwVrxMWYOqkY= =U/Ch -----END PGP SIGNATURE----- --ZGiS0Q5IWpPtfppv--