From nobody@FreeBSD.org  Wed Jul 12 07:38:22 2006
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 922A916A4E0
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 12 Jul 2006 07:38:22 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 0B77C43D53
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 12 Jul 2006 07:38:22 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id k6C7cLcv043453
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 12 Jul 2006 07:38:21 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id k6C7cLiP043451;
	Wed, 12 Jul 2006 07:38:21 GMT
	(envelope-from nobody)
Message-Id: <200607120738.k6C7cLiP043451@www.freebsd.org>
Date: Wed, 12 Jul 2006 07:38:21 GMT
From: Arseny Nasokin <tarc@tarc.po.cs.msu.su>
To: freebsd-gnats-submit@FreeBSD.org
Subject: can't bind <End> in muttng-20051110
X-Send-Pr-Version: www-2.3

>Number:         100150
>Category:       conf
>Synopsis:       [termcap] xterm is missing kp_end and multiple keys defined to \EOF
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    rafan
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jul 12 07:40:16 GMT 2006
>Closed-Date:    Sat Mar 08 05:47:09 UTC 2008
>Last-Modified:  Sat Mar  8 05:50:02 UTC 2008
>Originator:     Arseny Nasokin
>Release:        FreeBSD 7.0-CURRENT
>Organization:
Moscow State University
>Environment:
>Description:
muttng dy default binds <End> key to `last-entry' function, but if this key is pressed, muttng will say, that it's unbinded (Key is not bound.  Press '?' for help.)

The key binding on the fly doesn't help.
>How-To-Repeat:
install muttng (with any number of build options), open your mailbox and press <End> key
>Fix:

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->shaun 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Wed Jul 12 11:07:27 UTC 2006 
Responsible-Changed-Why:  
Over to maintainer 

http://www.freebsd.org/cgi/query-pr.cgi?pr=100150 
State-Changed-From-To: open->suspended 
State-Changed-By: shaun 
State-Changed-When: Wed Jul 12 15:53:40 UTC 2006 
State-Changed-Why:  
I have suspended this PR for now, because: 

- There is a newer version of mutt-ng in ports 
- I cannot reproduce the problem [with the current version] 
- The problem is unlikely to be ports-specific 

If you have more information / are able to test with the latest version 
of mutt-ng and/or with other Operating Systems, I can look into this or 
possibly contact the vendor. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=100150 

From: Ulrich Spoerlein <uspoerlein@gmail.com>
To: bug-followup@FreeBSD.org, tarc@tarc.po.cs.msu.su
Cc: rafan@FreeBSD.org, shaun@FreeBSD.org
Subject: Re: ports/100150: mail/mutt-ng: can't bind <End> in muttng-20051110
Date: Sun, 16 Dec 2007 20:41:11 +0100

 Hi,
 
 the problem is not specific to muttng (it happens with mutt too). It
 happens when you use ncurses+xterm. I'm running 7-CURRENT with mutt
 linked against the port ncurses as well as the base ncurses. It does not
 happen with slang at all.
 
 TERM needs to be xterm, if you use TERM=vt200 then Home, End, Enter work
 just fine. In TERM=xterm neither End or Enter work (Return does
 work, as do Home and PgUp, PgDn).
 
 I'm CC'ing Rong-En Fan as he should be a good source of information
 about ncurses.
 
 Btw, this problem was discussed several times on USENET and mailing
 lists. Switching to slang was the canonical solution, but since the port
 defaults to ncurses, I think we should investigate a bit more. I'll try
 to instrument mutt to print the received keycodes, perhaps then the bug
 uncovers.
 
 @shaun: please reopen the PR, I'm interested in fixing this. The
 synopsis should probably be changed to:
 
 mail/mutt*: can't bind <End> or <Enter> when using ncurses/xterm
 
 Cheers,
 Ulrich Spoerlein
State-Changed-From-To: suspended->open 
State-Changed-By: shaun 
State-Changed-When: Mon Dec 17 14:50:05 UTC 2007 
State-Changed-Why:  
Re-open. This bug is indeed reproducible, and also affects mutt. 


Responsible-Changed-From-To: shaun->freebsd-ports-bugs 
Responsible-Changed-By: shaun 
Responsible-Changed-When: Mon Dec 17 14:50:05 UTC 2007 
Responsible-Changed-Why:  
I no longer maintain mail/mutt-ng. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=100150 

From: Ulrich Spoerlein <uspoerlein@gmail.com>
To: bug-followup@FreeBSD.org, tarc@tarc.po.cs.msu.su
Cc:  
Subject: Re: ports/100150: mail/mutt*: can't bind
Date: Sun, 6 Jan 2008 11:19:18 +0100

 --qDbXVdCdHGoSgWSk
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline
 
 The problem is multiple mappings of the END key sequence \EOF in
 /etc/termcap. The following patch by Rong-En Fan will make END and
 KP_Enter work in mutt/ncurses.
 
 Apply it under /usr/src then
 cd /usr/src/share/termcap
 make clean all install
 
 and you'll be set. The patch will probably be committed to -CURRENT
 soon, pending further review.
 
 I'm just putting it here for reference. Once it has been committed and
 MFC'ed this PR can be closed.
 
 Cheers,
 Ulrich Spoerlein
 
 --qDbXVdCdHGoSgWSk
 Content-Type: text/x-diff; charset=us-ascii
 Content-Disposition: attachment; filename="termcap-xterm.diff"
 
 Index: share/termcap/termcap.src
 ===================================================================
 RCS file: /home/ncvs/src/share/termcap/termcap.src,v
 retrieving revision 1.149
 diff -u -r1.149 termcap.src
 --- share/termcap/termcap.src	17 Oct 2007 19:58:50 -0000	1.149
 +++ share/termcap/termcap.src	5 Jan 2008 18:15:21 -0000
 @@ -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~:\
 +	:@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:
  #
  # This chunk is used for building the VT220/Sun/PC keyboard variants.
 
 --qDbXVdCdHGoSgWSk--
Responsible-Changed-From-To: freebsd-ports-bugs->rafan 
Responsible-Changed-By: rafan 
Responsible-Changed-When: Sun Jan 6 11:41:16 UTC 2008 
Responsible-Changed-Why:  
I proposed a patch on -arch@ for review, so I will take this. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=100150 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: conf/100150: commit references a PR
Date: Tue,  8 Jan 2008 16:00:29 +0000 (UTC)

 rafan       2008-01-08 16:00:24 UTC
 
   FreeBSD src repository
 
   Modified files:
     share/termcap        termcap.src 
   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
   
   Revision  Changes    Path
   1.150     +2 -2      src/share/termcap/termcap.src
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
State-Changed-From-To: open->patched 
State-Changed-By: rafan 
State-Changed-When: Sat Jan 12 13:44:00 UTC 2008 
State-Changed-Why:  
Fixed in CURRENT. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=100150 
State-Changed-From-To: patched->closed 
State-Changed-By: rafan 
State-Changed-When: Sat Mar 8 05:47:08 UTC 2008 
State-Changed-Why:  
Committed to RELENG_[67]. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=100150 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: conf/100150: commit references a PR
Date: Sat,  8 Mar 2008 05:42:17 +0000 (UTC)

 rafan       2008-03-08 05:42:09 UTC
 
   FreeBSD src repository
 
   Modified files:        (Branch: RELENG_7)
     share/termcap        termcap.src 
   Log:
   MFC termcap changes for the END/ENTER keys
   
     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@
   
   Revision   Changes    Path
   1.148.2.1  +2 -2      src/share/termcap/termcap.src
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: conf/100150: commit references a PR
Date: Sat,  8 Mar 2008 05:42:57 +0000 (UTC)

 rafan       2008-03-08 05:42:52 UTC
 
   FreeBSD src repository
 
   Modified files:        (Branch: RELENG_6)
     share/termcap        termcap.src 
   Log:
   MFC termcap changes for the END/ENTER keys
   
     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@
   
   Revision   Changes    Path
   1.144.8.1  +2 -2      src/share/termcap/termcap.src
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
>Unformatted:
