From owner-freebsd-bugs Sun May 14 01:10:19 1995 Return-Path: bugs-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id BAA29751 for bugs-outgoing; Sun, 14 May 1995 01:10:19 -0700 Received: (from gnats@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id BAA29743 ; Sun, 14 May 1995 01:10:14 -0700 Date: Sun, 14 May 1995 01:10:14 -0700 Message-Id: <199505140810.BAA29743@freefall.cdrom.com> From: Heikki Suonsivu Reply-To: Heikki Suonsivu To: freebsd-bugs Subject: bin/407: Odd tset -I behaviour, termcap says xterm kb=^H In-Reply-To: Your message of Sun, 14 May 1995 11:08:08 +0300 <199505140808.LAA14810@katiska.clinet.fi> Sender: bugs-owner@FreeBSD.org Precedence: bulk >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: