From owner-freebsd-bugs@FreeBSD.ORG Sun Jul 5 07:00:11 2009 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AF3961065676 for ; Sun, 5 Jul 2009 07:00:11 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id A3E548FC18 for ; Sun, 5 Jul 2009 07:00:07 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n657069b068457 for ; Sun, 5 Jul 2009 07:00:06 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n65706AG068456; Sun, 5 Jul 2009 07:00:06 GMT (envelope-from gnats) Resent-Date: Sun, 5 Jul 2009 07:00:06 GMT Resent-Message-Id: <200907050700.n65706AG068456@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, anonymous <> Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1C69910656A9 for ; Sun, 5 Jul 2009 06:57:02 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id DAF988FC15 for ; Sun, 5 Jul 2009 06:57:01 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id n656v15N054508 for ; Sun, 5 Jul 2009 06:57:01 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id n656v1Lv054507; Sun, 5 Jul 2009 06:57:01 GMT (envelope-from nobody) Message-Id: <200907050657.n656v1Lv054507@www.freebsd.org> Date: Sun, 5 Jul 2009 06:57:01 GMT From: anonymous <> To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: conf/136336: [termcap] missing entry for "center of keypad" in xterm record X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 05 Jul 2009 07:00:14 -0000 >Number: 136336 >Category: conf >Synopsis: [termcap] missing entry for "center of keypad" in xterm record >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Jul 05 07:00:06 UTC 2009 >Closed-Date: >Last-Modified: >Originator: anonymous >Release: FreeBSD 8.0-CURRENT amd64 >Organization: >Environment: FreeBSD blah 8.0-CURRENT FreeBSD 8.0-CURRENT #1 r195339M: Sat Jul 4 21:17:30 UTC 2009 blah@blah:/usr/obj/usr/src/sys/BLAH amd64 >Description: Under syscons with and without GNU screen center of keypad (produces "5" with numlock) generates \E[E sequence that matches key_b2 capability in cons25 record. The same is true for plain xterm with xterm record. However, with screen center of keypad generates not \E[E but \EOE sequence. This sequence goes like the rest keypad sequences, e.g. ku: \E[A -> \EOA; kl: \E[C -> \EOC. One can enforce xterm to produce what it sees in termcap by `XTerm.keyboardType: tcap' resource. So you have correct mapping again. But this doesn't work because there is *no* entry for \EOE. So you get unchanged \E[E. >How-To-Repeat: 1. $ xterm -kt tcap 2. turn off numlock 3. type Ctrl+V "center key" -> \E[E It should be \EOE or whatever and present in termcap file for xterm record. >Fix: Workaround: add `termcapinfo xterm* K2=\EOE' to ~/.screenrc. This way one can use termcap binding instead of raw sequence, e.g. $ screen -X bindkey -k K2 at xmp stuff " " Another workaround: add :K2=\EOE: to xterm-xfree86 record in /etc/termcap --- termcap.src.diff begins here --- Index: share/termcap/termcap.src =================================================================== --- share/termcap/termcap.src (revision 195339) +++ share/termcap/termcap.src (working copy) @@ -2809,7 +2809,7 @@ xterm-xfree86|XFree86 xterm:\ :k9=\E[20~:k;=\E[21~:F1=\E[23~:F2=\E[24~:\ :@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: + :ku=\EOA:kd=\EOB:kr=\EOC:kl=\EOD:K2=\EOE:Km=\E[M:tc=xterm-basic: # # This chunk is used for building the VT220/Sun/PC keyboard variants. xterm-basic|xterm common (XFree86):\ --- termcap.src.diff ends here --- This one fixes GNU screen but not xterm `-kt tcap'. >Release-Note: >Audit-Trail: >Unformatted: