Date: Wed, 18 Jul 2007 20:54:59 +0400 From: Yuri Pankov <yuri@darklight.org.ru> To: freebsd-x11@freebsd.org Subject: Re: xterm, ncurses and End key Message-ID: <20070718165459.GA51027@darklight.org.ru> In-Reply-To: <20070718151204.GA49743@darklight.org.ru> References: <20070718151204.GA49743@darklight.org.ru>
next in thread | previous in thread | raw e-mail | index | archive | help
--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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070718165459.GA51027>