From naddy@unix-ag.uni-kl.de Mon Jun 14 09:59:00 1999
Return-Path: <naddy@unix-ag.uni-kl.de>
Received: from news.uni-kl.de (news.uni-kl.de [131.246.137.51])
	by hub.freebsd.org (Postfix) with SMTP id 4CB7D15418
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 14 Jun 1999 09:58:53 -0700 (PDT)
	(envelope-from naddy@unix-ag.uni-kl.de)
Received: from sushi.unix-ag.uni-kl.de
           ( root@sushi.unix-ag.uni-kl.de [131.246.89.13] ) by news.uni-kl.de
          id aa00471 for <FreeBSD-gnats-submit@freebsd.org>;
          14 Jun 1999 19:00 MESZ
Received: from fettuccini.unix-ag.uni-kl.de (fettuccini.unix-ag.uni-kl.de [131.246.89.27])
	by sushi.unix-ag.uni-kl.de (8.9.1a/8.9.1) with ESMTP id SAA25426
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 14 Jun 1999 18:58:33 +0200
Received: (from naddy@localhost)
	by fettuccini.unix-ag.uni-kl.de (8.9.3/8.9.3) id SAA48344;
	Mon, 14 Jun 1999 18:58:44 +0200 (CEST)
	(envelope-from naddy)
Message-Id: <199906141658.SAA48344@fettuccini.unix-ag.uni-kl.de>
Date: Mon, 14 Jun 1999 18:58:44 +0200 (CEST)
From: Christian Weisgerber <naddy@unix-ag.uni-kl.de>
Reply-To: naddy@unix-ag.uni-kl.de
To: FreeBSD-gnats-submit@freebsd.org
Subject: termcap: "xterm" entry defines bogus capabilities
X-Send-Pr-Version: 3.2

>Number:         12209
>Category:       misc
>Synopsis:       termcap: "xterm" entry defines bogus capabilities
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jun 14 10:00:01 PDT 1999
>Closed-Date:    Tue Nov 16 03:00:39 PST 1999
>Last-Modified:  Tue Nov 16 03:02:52 PST 1999
>Originator:     Christian Weisgerber
>Release:        FreeBSD 3.2-RELEASE i386
>Organization:
Unix-AG, Uni Kaiserslautern
>Environment:

screen 3.7.6 from ports/misc/screen.

>Description:

When running inside xterm, screen will write the status line messages
inside the window rather than in the customary pseudo-status line
at the bottom. A quick examination of the problem reveals that the
"xterm" termcap entry is broken. It defines control sequences for
the handling of a dedicated status line that xterm simply doesn't
implement. (The codes are apparently those used by kterm.)

I verified that these control sequences (capabilities: hs, es, ts,
fs, ds) are not implemented by (1) checking the source of xterm
and (2) asking Thomas Dickey <dickey@clark.net>, the current
maintainer of xterm.

>How-To-Repeat:

Start screen inside xterm, hit ^Aw.

>Fix:

Remove the bogus capabilities from the "xterm" termcap entry.
	
--- termcap.old	Tue May 18 05:40:07 1999
+++ termcap	Mon Jun 14 18:37:22 1999
@@ -298,8 +298,7 @@
 xterm|vs100|xterm terminal emulator (X window system):\
 	:li#65:\
 	:kh=\EOH:@7=\EOF:kb=^H:kD=^?:\
-	:k1=\EOP:k2=\EOQ:k3=\EOR:k4=\EOS:\
-	:hs:km:ts=\E[?E\E[?%i%dT:fs=\E[?F:es:ds=\E[?E:\
+	:k1=\EOP:k2=\EOQ:k3=\EOR:k4=\EOS:km:\
 	:is=\E>\E[?1;3;4;5l\E[?7;8h\E[1;65r\E[65;1H:\
 	:rs=\E>\E[?1;3;4;5l\E[?7;8h:\
 	:tc=vt220:

>Release-Note:
>Audit-Trail:

From: <jkoshy@FreeBSD.org>
To: freebsd-gnats-submit@freebsd.org
Cc:  
Subject: Re: misc/12209: termcap: "xterm" entry defines bogus capabilities
Date: Fri, 1 Oct 1999 23:36:48 -0700 (PDT)

 If you are using the 'xterm' that comes with XFree86, then the
 correct value of the TERM variable seems to be 'xterm-xf86-v32'.
 
 screen(1) works fine with this TERM setting.
 
 Regards,
 Koshy
 <jkoshy@freebsd.org>
 
State-Changed-From-To: open->closed 
State-Changed-By: jkoshy 
State-Changed-When: Tue Nov 16 03:00:39 PST 1999 
State-Changed-Why:  
Fixed in rev 1.86 of "src/share/termcap/termcap.src", thanks! 
>Unformatted:
