Skip site navigation (1)Skip section navigation (2)
Date:      Fri,  1 Aug 2003 16:45:58 +0300 (EEST)
From:      Juha-Matti Tilli <juhis@nallukka.net>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   misc/55146: [PATCH] The termcap entry for screen is old
Message-ID:  <20030801134558.214B215236@tykki.ath.cx>
Resent-Message-ID: <200308011350.h71DoLsH039951@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help


>Number:         55146
>Category:       misc
>Synopsis:       [PATCH] The termcap entry for screen is old
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Fri Aug 01 06:50:18 PDT 2003
>Closed-Date:
>Last-Modified:
>Originator:     Juha-Matti Tilli
>Release:        FreeBSD 5.0-RELEASE-p6 i386
>Organization:
>Environment:
System: FreeBSD tykki.juhis.lan 5.0-RELEASE-p6 FreeBSD 5.0-RELEASE-p6 #0: Sun Mar 23 16:44:53 EET 2003 juhis@tykki.juhis.lan:/varasto/obj/usr/src/sys/TYKKI i386

>Description:

The termcap entry for screen is old and does not have end key.

>How-To-Repeat:

% screen
% ssh localhost
% less somefile

The end key does not work in less and vim.

Screen sets the correct termcap entry in TERMCAP environment variable. But when
you connect to some machine with ssh, TERMCAP is not preserved and the old
entry in /usr/share/misc/termcap is used instead.

>Fix:

Use the termcap entry that comes with screen.

Here is a patch for version 1.132 of termcap.src:

--- /usr/src/share/termcap/termcap.src.old	Sat Sep 28 06:40:19 2002
+++ /usr/src/share/termcap/termcap.src	Fri Aug  1 16:28:12 2003
@@ -2722,16 +2722,20 @@
 	:li#24:co#80:us=\E[4m:ue=\E[24m:so=\E[3m:se=\E[23m:\
 	:mb=\E[5m:md=\E[1m:mr=\E[7m:me=\E[m:sr=\EM:al=\E[L:\
 	:AL=\E[%dL:dl=\E[M:DL=\E[%dM:cs=\E[%i%d;%dr:dc=\E[P:\
-	:DC=\E[%dP:ic=\E[@:IC=\E[%d@:\
+	:DC=\E[%dP:im=\E[4h:ei=\E[4l:IC=\E[%d@:\
 	:ks=\E[?1h\E=:ke=\E[?1l\E>:vb=\Eg:\
 	:ku=\EOA:kd=\EOB:kr=\EOC:kl=\EOD:kb=^H:\
 	: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=\E[1~:kI=\E[2~:kD=\E[3~:kH=\E[4~:kP=\E[5~:kN=\E[6~:\
-	:eA=\E(B\E)0:as=^N:ae=^O:\
+	:kh=\E[1~:kI=\E[2~:kD=\E[3~:kH=\E[4~:@7=\E[4~:kP=\E[5~:\
+	:kN=\E[6~:eA=\E(B\E)0:as=^N:ae=^O:ti=\E[?1049h:te=\E[?1049l:\
 	:vi=\E[?25l:ve=\E[34h\E[?25h:vs=\E[34l:\
 	:Co#8:pa#64:AF=\E[3%dm:AB=\E[4%dm:op=\E[39;49m:AX:\
-	:ac=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~..--++,,hhii00:
+	:ac=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~..--++,,hhII00:
+SB|screen-bce|VT 100/ANSI X3.64 virtual terminal with bce:\
+	:ut:tc=screen:
+SH|screen-s|VT 100/ANSI X3.64 virtual terminal with hardstatus line:\
+	:ts=\E_:fs=\E\\:ds=\E_\E\\:tc=screen:
 SW|screen-w|VT 100/ANSI X3.64 virtual terminal with 132 cols:\
 	:co#132:tc=screen:
 # $Xorg: termcap,v 1.3 2000/08/17 19:55:10 cpqbld Exp $

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030801134558.214B215236>