Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 14 May 1995 01:10:14 -0700
From:      Heikki Suonsivu <hsu@clinet.fi>
To:        freebsd-bugs
Subject:   bin/407: Odd tset -I behaviour, termcap says xterm kb=^H
Message-ID:  <199505140810.BAA29743@freefall.cdrom.com>
In-Reply-To: Your message of Sun, 14 May 1995 11:08:08 %2B0300 <199505140808.LAA14810@katiska.clinet.fi>

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

>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:          open
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun May 14 01:10:11 1995
>Originator:     Heikki Suonsivu
>Organization:
Helsinki University of Technology, Finland
>Release:        FreeBSD 2.0-BUILT-19950507 i386
>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=^?

>Audit-Trail:
>Unformatted:





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