xterm, ncurses and End key
Yuri Pankov
yuri at darklight.org.ru
Wed Jul 18 15:19:54 UTC 2007
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...
-------------- next part --------------
--- 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.
More information about the freebsd-x11
mailing list