Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 25 Oct 2007 16:39:53 GMT
From:      Yuri <yuri@tsoft.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   misc/117492: reset(tset) doesn't restore erase token
Message-ID:  <200710251639.l9PGdrmM081898@www.freebsd.org>
Resent-Message-ID: <200710251650.l9PGo0Yw047867@freefall.freebsd.org>

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

>Number:         117492
>Category:       misc
>Synopsis:       reset(tset) doesn't restore erase token
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Oct 25 16:50:00 UTC 2007
>Closed-Date:
>Last-Modified:
>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:
>Unformatted:



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