From owner-freebsd-bugs@FreeBSD.ORG Thu Oct 25 16:50:01 2007 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1EEB616A420 for ; Thu, 25 Oct 2007 16:50:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id F142013C491 for ; Thu, 25 Oct 2007 16:50:00 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.1/8.14.1) with ESMTP id l9PGo004047868 for ; Thu, 25 Oct 2007 16:50:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.1/8.14.1/Submit) id l9PGo0Yw047867; Thu, 25 Oct 2007 16:50:00 GMT (envelope-from gnats) Resent-Date: Thu, 25 Oct 2007 16:50:00 GMT Resent-Message-Id: <200710251650.l9PGo0Yw047867@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Yuri Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EEF1316A417 for ; 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 ; 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 ; 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 To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: misc/117492: reset(tset) doesn't restore erase token X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Oct 2007 16:50:01 -0000 >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 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: