Bug 28154

Summary: addition of an entry for rxvt to our termcap
Product: Base System Reporter: Giorgos Keramidas <charon>
Component: miscAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 4.3-STABLE   
Hardware: Any   
OS: Any   

Description Giorgos Keramidas 2001-06-14 22:30:01 UTC
	Our termcap does not include an entry for TERM=rxvt.
        The attached patches modify src/share/termcap/termcap.src to include
        the termcap entry found in the rxvt-2.6.3 sources (patch-aa) and to
        fix the key_end capability of that termcap entry (patch-ab).

Fix: 

-------------------------------------------------------------------------
	( patch-aa ) add rxvt termcap entry to /usr/src/share/termcap/termcap.src
	-------------------------------------------------------------------------

	--- termcap.src	Fri Jun 15 00:01:13 2001
	+++ termcap.rxvt.0	Fri Jun 15 00:00:07 2001
	@@ -4191,6 +4191,26 @@
	 pi|pilot|tgtelnet:am:xn:bs:co#39:li#16:cl=\Ec:cm=\Em%+ %+ :ho=\Em  :nw=\Em~ :\
		:so=\Eb:se=\EB:bl=^g:cr=^m:do=^j:le=^h:kP=^k:kN=^l:
	 
	+# Termcap entry for rxvt, taken from the sources of rxvt-2.6.3
	+rxvt|rxvt terminal emulator (X Window System):\
	+	:am:eo:km:mi:ms:xn:xo:\
	+	:co#80:it#8:li#24:\
	+	: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:UP=\E[%dA:ae=^O:al=\E[L:as=^N: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: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:\
	+	:k0=\E[21~: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=^H:kd=\E[B:ke=\E>:\
	+	:kh=\E[7~:kl=\E[D:kr=\E[C:ks=\E=:ku=\E[A: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[?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:
	+
	 #
	 # END OF TERMCAP
	 #  ------------------------

	-------------------------------------------------------------------------
	( patch-ab ) add @7 capability to rxvt termcap to make END work correctly
	-------------------------------------------------------------------------

	--- termcap.src	Fri Jun 15 00:01:49 2001
	+++ termcap.rxvt.1	Fri Jun 15 00:00:31 2001
	@@ -4205,7 +4205,7 @@
		:k0=\E[21~: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=^H:kd=\E[B:ke=\E>:\
	-	:kh=\E[7~:kl=\E[D:kr=\E[C:ks=\E=:ku=\E[A:le=^H:mb=\E[5m:\
	+	:kh=\E[7~:@7=\E[8~:kl=\E[D:kr=\E[C:ks=\E=:ku=\E[A: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[?47l\E8:ti=\E7\E[?47h:ue=\E[24m:up=\E[A:us=\E[4m:\
How-To-Repeat: 
        Try using rxvt with TERM=vt220.  Most of the keys work fine,
        except for HOME, END, and function-keys.  If you add the attached
        termcap entry to the system termcap then most of the keys that seem
        problematic with TERM set to vt100, vt102, vt220, or vt320, then work
        correctly.
Comment 1 Jens Schweikhardt freebsd_committer freebsd_triage 2001-06-15 17:25:39 UTC
State Changed
From-To: open->closed

Committed to -current; expect a MFC within next weeks. Thanks, Giorgos!