From hsu@clinet.fi  Sun May 14 01:08:18 1995
Received: from clinet.fi (root@clinet.fi [193.64.6.1])
          by freefall.cdrom.com (8.6.10/8.6.6) with ESMTP id BAA29682
          for <FreeBSD-gnats-submit@freebsd.org>; Sun, 14 May 1995 01:08:15 -0700
Received: from katiska.clinet.fi (root@katiska.clinet.fi [193.64.6.3]) by clinet.fi (8.6.10/8.6.4) with ESMTP id LAA16266 for <FreeBSD-gnats-submit@freebsd.org>; Sun, 14 May 1995 11:08:09 +0300
Received: (hsu@localhost) by katiska.clinet.fi (8.6.11/8.6.4) id LAA14810; Sun, 14 May 1995 11:08:08 +0300
Message-Id: <199505140808.LAA14810@katiska.clinet.fi>
Date: Sun, 14 May 1995 11:08:08 +0300
From: Heikki Suonsivu <hsu@clinet.fi>
Reply-To: hsu@clinet.fi
To: FreeBSD-gnats-submit@freebsd.org
Subject: Odd tset -I behaviour, termcap says xterm kb=^H
X-Send-Pr-Version: 3.2

>Number:         407
>Category:       bin
>Synopsis:       tset -I breaks erase character, termcap says xterm kb=^H
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs (FreeBSD bugs mailing list)
>State:          closed
>Quarter:
>Keywords:
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun May 14 01:10:11 1995
>Closed-Date:    Sun May 14 16:33:55 PDT 1995
>Last-Modified:
>Originator:     Heikki Suonsivu
>Release:        FreeBSD 2.0-BUILT-19950507 i386
>Organization:
Helsinki University of Technology, Finland
>Environment:

	kernel from 10th this month, world from supposedly same sources,
	but tonights sup also has this.

>Description:

The termcap entry for xterm is false, it says that erase key sends ^H,
while most systems send ^?.

If kb definition is removed, tset -I seems to default to ^H, not
CERASE.  The behaviour seems weird:

(clean environment, tcsh, no .cshrc or .login)

> tset -I
Erase set to backspace.

stty shows ^H

> setenv TERM xterm (one that has been fixed to kb=^?)
> tset -I
Erase is backspace.

stty still shows ^H

> setenv TERMCAP /etc/termcap
> tset -I
Erase set to backspace.

This is fancy; it needs TERMCAP defined, though it is still reporting
that it is setting erase to backspace, while it should be saying
delete.  The code looks odd; like it was missing something?

>How-To-Repeat:

termcap problem:
	rlogin freebsd2-machine
	tset -I
	sh
	stty everything (shows erase key as ^H)
	
tset problem:
	remove kb=^H
	tset -I
	stty everything (shows erase key as ^H)

>Fix:
	
	tset -I for terminal which doesn't have kb definition probably
should default to CERASE so that it would be consistent with other
systems.

	xterm termcap entry probably should contain kb=^?

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: ache 
State-Changed-When: Sun May 14 16:33:55 PDT 1995 
State-Changed-Why:  
Fixed in tset.c v1.8 and termcap.src v1.49 
>Unformatted:



