Skip site navigation (1)Skip section navigation (2)
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

[-- Attachment #1 --]
On Wed, Jul 18, 2007 at 07:12:04PM +0400, Yuri Pankov wrote:
> Hi,
> 
> 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?
> 
> Running -CURRENT/amd64.
> 
> 
> 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=\EOP:k2=\EOQ:k3=\EOR:k4=\EOS:\
>  	:k5=\E[15~:k6=\E[17~:k7=\E[18~:k8=\E[19~:\
>  	:k9=\E[20~:k;=\E[21~:F1=\E[23~:F2=\E[24~:\
> -	:kH=\EOF:@7=\EOF:kI=\E[2~:\
> -	:kh=\EOH:*6=\EOF:kP=\E[5~:kN=\E[6~:\
> +	:kH=\E[4~:@7=\EOF:kI=\E[2~:\
> +	:kh=\EOH:*6=\E[4~:kP=\E[5~:kN=\E[6~:\
>  	:ku=\EOA:kd=\EOB:kr=\EOC:kl=\EOD:Km=\E[M:tc=xterm-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

[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.4 (FreeBSD)

iD8DBQBGnkXjeoAklVFrLdgRAtWPAJ9zhPzzQ/14fx3b0VaC5Q60tTgGQgCeK5OG
5xZbqlGqPqbWwVrxMWYOqkY=
=U/Ch
-----END PGP SIGNATURE-----

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070718165459.GA51027>