delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/12/02/14:39:30

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,TW_RX,T_TO_NO_BRKTS_FREEMAIL
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
In-Reply-To: <786EBDA1AC46254B813E200779E7AD36013E5FAD@srv1163ex1.flightsafety.com>
References: <30355317 DOT post AT talk DOT nabble DOT com> <4CF70A11 DOT 8020604 AT acm DOT org> <76B81B8B64B6254B98733990F38621DA6A77 AT sron-chi-exc05 DOT ronin DOT roncap DOT com> <4CF7E501 DOT 9080901 AT acm DOT org> <4CF7E822 DOT 2050705 AT cwilson DOT fastmail DOT fm> <786EBDA1AC46254B813E200779E7AD36013E5FAD AT srv1163ex1 DOT flightsafety DOT com>
Date: Thu, 2 Dec 2010 19:39:17 +0000
Message-ID: <AANLkTik64paqUQtcsjnebSuXhkKwpnu+wmiKps0CpadB@mail.gmail.com>
Subject: Re: unable to type command into Cygwin after running 'tail'
From: Andy Koppe <andy DOT koppe AT gmail DOT com>
To: cygwin AT cygwin DOT com
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

On 2 December 2010 18:51, Thrall, Bryan wrote:
> Charles Wilson wrote on 2010-12-02:
>> On 12/2/2010 1:27 PM, David Rothenberger wrote:
>>> Illia Bobyr wrote:
>>>> On 12/1/2010 8:53 PM, David Rothenberger wrote:
>>>>> Try typing "reset" or "stty sane" (without the quotes) and pressing
>>>>> Enter. You won't see what you're typing, but after the shell should
>>>>> work again.
>>>>
>>>> Would you, please, elaborate on this a little bit?
>>>> Maybe a link or a reference that explains why this is happening?
>>>
>>> I'm sorry, I can't. I don't know why it is happening. I just know how
>>> to recover from it as a user.
>>
>> I've noticed that this misbehavior occurs more frequently these days:
>> ctrl-c'ing some tasks (tail, less, maybe a few others) ends up with the
>> terminal settings all scrogged up, and requires you to "blindly" type in
>> 'reset' (or stty sane) to fix it.
>>
>> It's really rather annoying, but I don't know what exactly caused this
>> to start happening. =C2=A0It's possible it is unique to mintty, since I
>> /think/ I started seeing this more frequently about the time I drifted
>> to regularly using mintty more than rxvt-unicode...and I don't think I
>> see this behavior in urxvt.
>
> I've seen it ctrl-c'ing to get out of a tail in an xterm, so it isn't spe=
cific to mintty.

Yeah, I wouldn't have thought so given that 'stty sane' fixes it. That
affects the terminal driver ("termios") settings only, which aren't
touched by mintty.

I think the issue here is whether the applications in question are
meant to restore the termios settings on SIGINT, and if so, why they
don't get round to doing so.

Andy

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019