Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 18 Jul 2007 19:18:51 +0400
From:      Yuri Pankov <yuri@darklight.org.ru>
To:        freebsd-x11@freebsd.org
Subject:   Re: xterm, ncurses and End key
Message-ID:  <20070718151851.GB49743@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

--96YOpH+ONegL0A3E
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

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

Attaching diff correctly this time...

--96YOpH+ONegL0A3E
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="termcap.src.diff"

--- 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.

--96YOpH+ONegL0A3E--



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