- Remove kH and *6 from xterm. They are defined to the same key as @7 (kp_end).

As ncurses has the limitation that it returns the first matched key symbol,
  you can not use END in ncurses based program, like mutt, with xterm.
- Add @8 (kp_enter) definition for xterm so you can use ENTER in xterm with
  ncurses based program.

I also found that NetBSD's xterm does the same thing.

PR:		100150
Reported by:	Arseny Nasokin <tarc at tarc.po.cs.msu.su>
Discussed with:	Thomas Dickey, Ulrich Spoerlein <uspoerlein at gmail.com>
Reviewed by:	freebsd-arch@
MFC after:	2 month
This commit is contained in:
Rong-En Fan 2008-01-08 16:00:24 +00:00
parent b0a4e26843
commit 5c46f7182e

View File

@ -2805,8 +2805,8 @@ xterm-xfree86|XFree86 xterm:\
: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~:\
:@7=\EOF:@8=\EOM:kI=\E[2~:\
:kh=\EOH: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.