conf/142578: [termcap] [patch] Re-apply changes from r175161 (making End work in ncurses apps)

Yuri Pankov yuri.pankov at gmail.com
Sun Jan 10 17:00:17 UTC 2010


>Number:         142578
>Category:       conf
>Synopsis:       [termcap] [patch] Re-apply changes from r175161 (making End work in ncurses apps)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jan 10 17:00:16 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     Yuri Pankov
>Release:        FreeBSD 9.0-CURRENT amd64
>Organization:
>Environment:
System: FreeBSD darklight.org.ru 9.0-CURRENT FreeBSD 9.0-CURRENT #3 r201546: Tue Jan 5 09:53:26 MSK 2010 yuri at darklight.org.ru:/usr/obj/home/yuri/src/head/sys/DARKLIGHT amd64
>Description:
Re-apply changes from r175161. Log:
- 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
>How-To-Repeat:
>Fix:

--- termcap.diff.txt begins here ---
Index: share/termcap/termcap.src
===================================================================
--- share/termcap/termcap.src	(revision 201968)
+++ share/termcap/termcap.src	(working copy)
@@ -2807,9 +2807,9 @@
 	:te=\E[?1049l:ti=\E[?1049h:\
 	:tc=xterm-new:
 xterm-new|modern xterm:\
-	:*6=\EOF:@7=\EOF:F1=\E[23~:F2=\E[24~:K2=\EOE:Km=\E[M:\
+	:@7=\EOF:@8=\EOM:F1=\E[23~:F2=\E[24~:K2=\EOE:Km=\E[M:\
 	: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~:kH=\EOF:kI=\E[2~:\
+	:k7=\E[18~:k8=\E[19~:k9=\E[20~:k;=\E[21~:kI=\E[2~:\
 	:kN=\E[6~:kP=\E[5~:kd=\EOB:kh=\EOH:kl=\EOD:kr=\EOC:ku=\EOA:\
 	:tc=xterm-basic:
 #
--- termcap.diff.txt ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-bugs mailing list