From nobody@FreeBSD.org  Fri Oct 19 13:41:37 2007
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 76C9D16A417
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 19 Oct 2007 13:41:37 +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 59DEF13C46B
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 19 Oct 2007 13:41:37 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.1/8.14.1) with ESMTP id l9JDfLOD011734
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 19 Oct 2007 13:41:21 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.1/8.14.1/Submit) id l9JDfKAi011713;
	Fri, 19 Oct 2007 13:41:20 GMT
	(envelope-from nobody)
Message-Id: <200710191341.l9JDfKAi011713@www.freebsd.org>
Date: Fri, 19 Oct 2007 13:41:20 GMT
From: Richard Bradshaw <richard.bradshaw@blueyonder.co.uk>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Missing termcap entry for rxvt-unicode
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         117323
>Category:       conf
>Synopsis:       [termcap] [patch] Missing termcap entry for rxvt-unicode
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    edwin
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Oct 19 13:50:01 UTC 2007
>Closed-Date:    Sun Jun 21 02:52:05 UTC 2009
>Last-Modified:  Wed Jul  8 02:30:04 UTC 2009
>Originator:     Richard Bradshaw
>Release:        6.2-STABLE
>Organization:
>Environment:
FreeBSD bambi.lan 6.2-STABLE FreeBSD 6.2-STABLE #0: Wed Oct 17 18:05:28 BST 2007     root@bambi.lan:/usr/obj/usr/src/sys/GENERIC  i386

>Description:
The termcap database does not have an entry for rxvt-unicode. This means
that programs that need an entry such as vi fail to work when connecting
via ssh using this terminal emulator.


>How-To-Repeat:
Connect to a FreeBSD machine via ssh using the rxvt-unicode terminal.
>Fix:
The rxvt-unicode FAQ has an example termcap entry-the attached patch adds
it to to the termcap.src.

Patch attached with submission follows:

--- termcap.src1	2007-10-19 14:38:21.000000000 +0100
+++ termcap.src	2007-10-19 14:33:05.000000000 +0100
@@ -4550,6 +4550,28 @@
 rxvt|rxvt terminal emulator (X Window System):\
 	:pa#64:Co#8:AF=\E[3%dm:AB=\E[4%dm:op=\E[39;49m:tc=rxvt-mono:
 
+# Termcap entry for rxvt-unicode, taken from http://cvs.schmorp.de/rxvt-unicode/doc/rxvt.7.html#I_need_a_termcap_file_entry
+rxvt-unicode|rxvt-unicode terminal (X Window System):\
+           :am:bw:eo:km:mi:ms:xn:xo:\
+           :co#80:it#8:li#24:lm#0:\
+           :AL=\E[%dL:DC=\E[%dP:DL=\E[%dM:DO=\E[%dB:IC=\E[%d@:\
+           :K1=\EOw:K2=\EOu:K3=\EOy:K4=\EOq:K5=\EOs:LE=\E[%dD:\
+           :RI=\E[%dC:SF=\E[%dS:SR=\E[%dT:UP=\E[%dA:ae=\E(B:al=\E[L:\
+           :as=\E(0:bl=^G:cd=\E[J:ce=\E[K:cl=\E[H\E[2J:\
+           :cm=\E[%i%d;%dH:cr=^M:cs=\E[%i%d;%dr:ct=\E[3g:dc=\E[P:\
+           :dl=\E[M:do=^J:ec=\E[%dX:ei=\E[4l:ho=\E[H:\
+           :i1=\E[?47l\E=\E[?1l:ic=\E[@:im=\E[4h:\
+           :is=\E[r\E[m\E[2J\E[H\E[?7h\E[?1;3;4;6l\E[4l:\
+           :k1=\E[11~:k2=\E[12~:k3=\E[13~:k4=\E[14~:k5=\E[15~:\
+           :k6=\E[17~:k7=\E[18~:k8=\E[19~:k9=\E[20~:kD=\E[3~:\
+           :kI=\E[2~:kN=\E[6~:kP=\E[5~:kb=\177:kd=\EOB:ke=\E[?1l\E>:\
+           :kh=\E[7~:kl=\EOD:kr=\EOC:ks=\E[?1h\E=:ku=\EOA:le=^H:\
+           :mb=\E[5m:md=\E[1m:me=\E[m\017:mr=\E[7m:nd=\E[C:rc=\E8:\
+           :sc=\E7:se=\E[27m:sf=^J:so=\E[7m:sr=\EM:st=\EH:ta=^I:\
+           :te=\E[r\E[?1049l:ti=\E[?1049h:ue=\E[24m:up=\E[A:\
+           :us=\E[4m:vb=\E[?5h\E[?5l:ve=\E[?25h:vi=\E[?25l:\
+           :vs=\E[?25h:
+
 # Termcap entry for Eterm, taken from the sources of Eterm-0.9.2
 Eterm|Eterm Terminal Emulator (X11 Window System):\
 	:am:bw:eo:km:mi:ms:xn:xo:\


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->open 
State-Changed-By: edwin 
State-Changed-When: Sat Jun 13 13:47:52 UTC 2009 
State-Changed-Why:  
I'll handle it. 


Responsible-Changed-From-To: freebsd-bugs->edwin 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Sat Jun 13 13:47:52 UTC 2009 
Responsible-Changed-Why:  
I'll handle it. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=117323 
State-Changed-From-To: open->patched 
State-Changed-By: edwin 
State-Changed-When: Sun Jun 14 03:32:08 UTC 2009 
State-Changed-Why:  
Commited to head, MFC in a week. 


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

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: conf/117323: commit references a PR
Date: Sun, 14 Jun 2009 03:35:13 +0000 (UTC)

 Author: edwin
 Date: Sun Jun 14 03:34:54 2009
 New Revision: 194146
 URL: http://svn.freebsd.org/changeset/base/194146
 
 Log:
   Add missing termcap entry for rxvt-unicode.
   
   	The termcap database does not have an entry for rxvt-unicode.
   	This means that programs that need an entry such as vi fail
   	to work when connecting via ssh using this terminal emulator.
   
   The added data is not the same as the PR submitted by Richard, it
   uses the :tc=xxx: option to inherit everything from rxvt-mono.
   
   PR:		conf/117323
   Submitted by:	Richard Bradshaw <richard.bradshaw@blueyonder.co.uk>
   MFC after:	1 week
 
 Modified:
   head/share/termcap/termcap.src
 
 Modified: head/share/termcap/termcap.src
 ==============================================================================
 --- head/share/termcap/termcap.src	Sun Jun 14 03:32:52 2009	(r194145)
 +++ head/share/termcap/termcap.src	Sun Jun 14 03:34:54 2009	(r194146)
 @@ -4547,6 +4547,12 @@ rxvt-mono|rxvt terminal emulator (monoch
  	:te=\E[?47l\E8:ti=\E7\E[?47h:ue=\E[24m:up=\E[A:us=\E[4m:\
  	:vb=\E[?5h\E[?5l:ve=\E[?25h:vi=\E[?25l:vs=\E[?25h:
  
 +# Termcap entry for rxvt-unicode, taken from http://cvs.schmorp.de/rxvt-unicode/doc/rxvt.7.html#I_need_a_termcap_file_entry
 +rxvt-unicode|rxvt-unicode terminal (X Window System):\
 +	:SF=\E[%dS:SR=\E[%dT:bw:ec=\E[%dX:kb=\177:kd=\EOB:ke=\E[?1l\E>:\
 +	:kl=\EOD:kr=\EOC:ks=\E[?1h\E=:ku=\EOA:lm#0:te=\E[r\E[?1049l:\
 +	:ti=\E[?1049h:tc=rxvt-mono:
 +
  rxvt|rxvt terminal emulator (X Window System):\
  	:pa#64:Co#8:AF=\E[3%dm:AB=\E[4%dm:op=\E[39;49m:tc=rxvt-mono:
  
 _______________________________________________
 svn-src-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-src-all
 To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org"
 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: conf/117323: commit references a PR
Date: Sun, 21 Jun 2009 02:45:33 +0000 (UTC)

 Author: edwin
 Date: Sun Jun 21 02:45:23 2009
 New Revision: 194565
 URL: http://svn.freebsd.org/changeset/base/194565
 
 Log:
   MFC of 194146
   
   Add missing termcap entry for rxvt-unicode.
   
         The termcap database does not have an entry for rxvt-unicode.
         This means that programs that need an entry such as vi fail
         to work when connecting via ssh using this terminal emulator.
   
   The added data is not the same as the PR submitted by Richard, it
   uses the :tc=xxx: option to inherit everything from rxvt-mono.
   
   PR:		conf/117323
   Submitted by:	Richard Bradshaw <richard.bradshaw@blueyonder.co.uk>
 
 Modified:
   stable/7/share/termcap/   (props changed)
   stable/7/share/termcap/termcap.src
 
 Modified: stable/7/share/termcap/termcap.src
 ==============================================================================
 --- stable/7/share/termcap/termcap.src	Sun Jun 21 01:54:47 2009	(r194564)
 +++ stable/7/share/termcap/termcap.src	Sun Jun 21 02:45:23 2009	(r194565)
 @@ -4547,6 +4547,12 @@ rxvt-mono|rxvt terminal emulator (monoch
  	:te=\E[?47l\E8:ti=\E7\E[?47h:ue=\E[24m:up=\E[A:us=\E[4m:\
  	:vb=\E[?5h\E[?5l:ve=\E[?25h:vi=\E[?25l:vs=\E[?25h:
  
 +# Termcap entry for rxvt-unicode, taken from http://cvs.schmorp.de/rxvt-unicode/doc/rxvt.7.html#I_need_a_termcap_file_entry
 +rxvt-unicode|rxvt-unicode terminal (X Window System):\
 +	:SF=\E[%dS:SR=\E[%dT:bw:ec=\E[%dX:kb=\177:kd=\EOB:ke=\E[?1l\E>:\
 +	:kl=\EOD:kr=\EOC:ks=\E[?1h\E=:ku=\EOA:lm#0:te=\E[r\E[?1049l:\
 +	:ti=\E[?1049h:tc=rxvt-mono:
 +
  rxvt|rxvt terminal emulator (X Window System):\
  	:pa#64:Co#8:AF=\E[3%dm:AB=\E[4%dm:op=\E[39;49m:tc=rxvt-mono:
  
 _______________________________________________
 svn-src-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-src-all
 To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org"
 
State-Changed-From-To: patched->closed 
State-Changed-By: edwin 
State-Changed-When: Sun Jun 21 02:50:26 UTC 2009 
State-Changed-Why:  
MFC to stable/7 done, thank you very much! 

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

From: "Eugene Paskevich" <eugene@raptor.kiev.ua>
To: bug-followup@freebsd.org, richard.bradshaw@blueyonder.co.uk
Cc:  
Subject: Re: conf/117323: [termcap] [patch] Missing termcap entry for
 rxvt-unicode
Date: Wed, 08 Jul 2009 05:09:24 +0300

 Hi,
 
 Frankly I see no reason why tc should be set to mono version of rxvt.
 Terminfo specifies that this terminal supports up to 88 colors,
 which could be easily set in termcap with Co# attribute.
 Please revise the patch and possibly submit the correct
 termcap entry upstream.
 
 -- 
 Eugene Paskevich
 eugene@raptor.kiev.ua
>Unformatted:
