From owner-freebsd-arch@FreeBSD.ORG Fri Jan 4 19:56:40 2008 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 63D8516A420 for ; Fri, 4 Jan 2008 19:56:40 +0000 (UTC) (envelope-from erikt@midgard.homeip.net) Received: from ch-smtp02.sth.basefarm.net (ch-smtp02.sth.basefarm.net [80.76.149.213]) by mx1.freebsd.org (Postfix) with ESMTP id E701013C4E1 for ; Fri, 4 Jan 2008 19:56:39 +0000 (UTC) (envelope-from erikt@midgard.homeip.net) Received: from c83-253-25-183.bredband.comhem.se ([83.253.25.183]:56761 helo=falcon.midgard.homeip.net) by ch-smtp02.sth.basefarm.net with esmtp (Exim 4.68) (envelope-from ) id 1JAsPn-0006PF-8i for freebsd-arch@freebsd.org; Fri, 04 Jan 2008 20:41:12 +0100 Received: (qmail 57099 invoked from network); 4 Jan 2008 20:41:09 +0100 Received: from owl.midgard.homeip.net (10.1.5.7) by falcon.midgard.homeip.net with ESMTP; 4 Jan 2008 20:41:09 +0100 Received: (qmail 47867 invoked by uid 1001); 4 Jan 2008 20:41:09 +0100 Date: Fri, 4 Jan 2008 20:41:09 +0100 From: Erik Trulsson To: Rong-en Fan , freebsd-arch@freebsd.org Message-ID: <20080104194108.GA47714@owl.midgard.homeip.net> Mail-Followup-To: Rong-en Fan , freebsd-arch@freebsd.org References: <6eb82e0801021747w73a04d5ckc0a7ef623a806302@mail.gmail.com> <20080104180429.GA1496@roadrunner.spoerlein.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20080104180429.GA1496@roadrunner.spoerlein.net> User-Agent: Mutt/1.5.17 (2007-11-01) X-Originating-IP: 83.253.25.183 X-Scan-Result: No virus found in message 1JAsPn-0006PF-8i. X-Scan-Signature: ch-smtp02.sth.basefarm.net 1JAsPn-0006PF-8i 3fc3b5defa9a2b0367dc76fdcd62f09c Cc: Subject: Re: removing kH and *6 from xterm X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Jan 2008 19:56:40 -0000 On Fri, Jan 04, 2008 at 07:04:29PM +0100, Ulrich Spoerlein wrote: > Hi Rong-en, > > On Thu, 03.01.2008 at 09:47:34 +0800, Rong-en Fan wrote: > > Hi folks, > > > > Recently, I'm looking into 100150 which reports END key does not working in > > mutt. With some help from ncurses author, I think this problem is caused by > > our termcap. To be specific, our termcap defines kH, @7 (the END key), and *6 > > to \EOF. ncurses has the limitation that it will only return the first matched > > key back. So, in ncurses based program, it receives kH instead of @7 when you > > hit END. > > Thanks for taking up the ball! It is not only the END key, though. The > KP_Enter is missing, too. > > Is there some documentation on what kH, @7, etc. all means? I see that > Home (^[OH) and End (^[OF) are there in /etc/termcap but only Return > (^M) and not KP_Enter (^[OM). What would be the symbol required to map > ^[OM to? > > I see that vt100 has @8=\EOM, is this what I'm looking for and do we > want it in the xterm definition? Read the termcap(5) and terminfo(5) manpages. They should include all information you might need about terminal capabilities. > > > I just checked NetBSD's termcap, they only defines @7 to \EOF in xterm entry. > > Also, on a Linux box, infocmp shows that only @7 is defined but not *6 and kH. > > So, I'm wondering whether we should remove those two keys (kH and @7)? > > They also define @8=\EOM right next to @7. > > I wonder, though, how do I activate the change? I changed /etc/termcap, > opened a new xterm but mutt's behaviour hasn't changed ... > I believe most programs look in /usr/share/misc/termcap.db (built from /usr/share/misc/termcap with cap_mkdb(1)) -- Erik Trulsson ertr1013@student.uu.se