From owner-freebsd-arch@FreeBSD.ORG Sat Jan 5 18:21:49 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 4454116A421 for ; Sat, 5 Jan 2008 18:21:49 +0000 (UTC) (envelope-from grafan@gmail.com) Received: from fk-out-0910.google.com (fk-out-0910.google.com [209.85.128.189]) by mx1.freebsd.org (Postfix) with ESMTP id EB4A013C44B for ; Sat, 5 Jan 2008 18:21:48 +0000 (UTC) (envelope-from grafan@gmail.com) Received: by fk-out-0910.google.com with SMTP id b27so10374025fka.11 for ; Sat, 05 Jan 2008 10:21:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=dovyTqmnCbs6lfMw+NkZDCtmkXg8DbVBXDwWhDcC9bI=; b=K+HpED9eQxEyU/lz2q1ppH+dIthj85l4rDkb6D0jlQDIaYhroWeRjKjPD8Ye/BjjzHlZt8GUq1dILclDDXHvsTcXnK45vGA/fRbQ48JM7pSo3OlV3USGQjMyorsd4TXYCQGkvv7L0RI9PyXdwvskvUJFqX7egTyle655j5daFMI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=abDzKjOKftm3HFZYRU5GHpqKSy3XChjQwQNSdcWvFn7ItR/kyJYuu/qn0tRSwygmUoct5auUuNMpT5AI7QxGMrTsJ/o81ijvHvvoUHmG6+w4eQCd8k/9DrK0rpvHB6mq8dq7S88agbtdHU5698YXwbcVdY/AgyDTNI7DU920rkI= Received: by 10.82.146.14 with SMTP id t14mr32114532bud.9.1199557307221; Sat, 05 Jan 2008 10:21:47 -0800 (PST) Received: by 10.82.116.17 with HTTP; Sat, 5 Jan 2008 10:21:47 -0800 (PST) Message-ID: <6eb82e0801051021s7161766bm6b98bbdc5b9e8748@mail.gmail.com> Date: Sun, 6 Jan 2008 02:21:47 +0800 From: "Rong-en Fan" To: freebsd-arch@freebsd.org In-Reply-To: <20080104180429.GA1496@roadrunner.spoerlein.net> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <6eb82e0801021747w73a04d5ckc0a7ef623a806302@mail.gmail.com> <20080104180429.GA1496@roadrunner.spoerlein.net> 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: Sat, 05 Jan 2008 18:21:49 -0000 On Jan 5, 2008 2:04 AM, 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? > > > 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'm proposing the following change: http://people.freebsd.org/~rafan/termcap-xterm.diff which removes kH, *6 from xterm and adds @8 (enter key) to it. Any objections? Thanks, Rong-En Fan > > Cheers, > Ulrich Spoerlein > -- > It is better to remain silent and be thought a fool, > than to speak, and remove all doubt. >