From owner-freebsd-x11@FreeBSD.ORG Wed Jul 18 15:19:54 2007 Return-Path: X-Original-To: freebsd-x11@freebsd.org Delivered-To: freebsd-x11@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 8273C16A400 for ; Wed, 18 Jul 2007 15:19:54 +0000 (UTC) (envelope-from yuri@darklight.org.ru) Received: from darklight.org.ru (darklight.org.ru [194.186.18.14]) by mx1.freebsd.org (Postfix) with ESMTP id 719B013C4BC for ; Wed, 18 Jul 2007 15:19:51 +0000 (UTC) (envelope-from yuri@darklight.org.ru) Received: from darklight.org.ru (yuri@darklight.org.ru [127.0.0.1]) by darklight.org.ru (8.14.1/8.14.1) with ESMTP id l6IFIqMP050143 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Wed, 18 Jul 2007 19:18:58 +0400 (MSD) (envelope-from yuri@darklight.org.ru) Received: (from yuri@localhost) by darklight.org.ru (8.14.1/8.14.1/Submit) id l6IFIp5p050142 for freebsd-x11@freebsd.org; Wed, 18 Jul 2007 19:18:51 +0400 (MSD) (envelope-from yuri@darklight.org.ru) Date: Wed, 18 Jul 2007 19:18:51 +0400 From: Yuri Pankov To: freebsd-x11@freebsd.org Message-ID: <20070718151851.GB49743@darklight.org.ru> References: <20070718151204.GA49743@darklight.org.ru> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="96YOpH+ONegL0A3E" Content-Disposition: inline In-Reply-To: <20070718151204.GA49743@darklight.org.ru> User-Agent: Mutt/1.5.16 (2007-06-09) X-Greylist: Sender is SPF-compliant, not delayed by milter-greylist-3.0 (darklight.org.ru [127.0.0.1]); Wed, 18 Jul 2007 19:18:58 +0400 (MSD) Subject: Re: xterm, ncurses and End key X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: X11 on FreeBSD -- maintaining and support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Jul 2007 15:19:54 -0000 --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--