From nobody@FreeBSD.org  Thu Oct 25 16:40:21 2007
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id EEF1316A417
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 25 Oct 2007 16:40:21 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id DEA2513C481
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 25 Oct 2007 16:40:21 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.1/8.14.1) with ESMTP id l9PGdr1N081899
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 25 Oct 2007 16:39:53 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.1/8.14.1/Submit) id l9PGdrmM081898;
	Thu, 25 Oct 2007 16:39:53 GMT
	(envelope-from nobody)
Message-Id: <200710251639.l9PGdrmM081898@www.freebsd.org>
Date: Thu, 25 Oct 2007 16:39:53 GMT
From: Yuri <yuri@tsoft.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: reset(tset) doesn't restore erase token
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         117492
>Category:       bin
>Synopsis:       reset(1) doesn't restore erase token
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Oct 25 16:50:00 UTC 2007
>Closed-Date:    Wed Feb 10 16:22:21 UTC 2010
>Last-Modified:  Wed Feb 10 16:22:21 UTC 2010
>Originator:     Yuri
>Release:        6.2-STABLE
>Organization:
n/a
>Environment:
>Description:
I work in bash (in X).

Vim editor is opened with some file.

When I kill vim (from some other terminal) many options on this terminal
get trashed. For example when I press <Enter> another prompt occurs in
the same line.

When I run 'reset' all options get restored but one: erase functionality
doesn't work. Backspace key doesn't delete, but prints something instead.
So I have to run 'stty erase ^?' and then the problem is gone.

I believe the effect of 'stty erase ^?' should be included in 'reset'
command. This should be fixed.

Also when the terminal sees that some child was killed by a signal isn't
it supposed to restore the terminal options to the ones that were there
before?  Somehow the problem doesn't happen when vim is being sent to
background. So terminal does restore options when the process goes into
the background but doesn't when the process is killed. This should be fixed.
>How-To-Repeat:

>Fix:


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->obrien 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Thu Oct 25 18:01:59 UTC 2007 
Responsible-Changed-Why:  
Over to maintainer. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=117492 
Responsible-Changed-From-To: obrien->freebsd-bugs 
Responsible-Changed-By: obrien 
Responsible-Changed-When: Tue Nov 6 16:11:36 UTC 2007 
Responsible-Changed-Why:  
This is not a Vim issue (Vim just provides the test case). 
The issue is with /usr/bin/reset. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=117492 
State-Changed-From-To: open->closed 
State-Changed-By: jh 
State-Changed-When: Wed Feb 10 16:22:20 UTC 2010 
State-Changed-Why:  
Duplicate of bin/90524. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=117492 
>Unformatted:
