Mail Archives: cygwin/2011/04/14/17:14:55
X-Recipient: | archive-cygwin AT delorie DOT com
|
X-SWARE-Spam-Status: | No, hits=0.8 required=5.0 tests=AWL,BAYES_50,DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST,T_TO_NO_BRKTS_FREEMAIL
|
X-Spam-Check-By: | sourceware.org
|
MIME-Version: | 1.0
|
In-Reply-To: | <BANLkTinWsqpzrbZimsJW+zQ6Yz=cOgPu-A@mail.gmail.com>
|
References: | <BANLkTikxCqvMCC3M5YQzcHM-C80d=DRYpA AT mail DOT gmail DOT com> <BANLkTinWsqpzrbZimsJW+zQ6Yz=cOgPu-A AT mail DOT gmail DOT com>
|
From: | Edward McGuire <MetaEd AT metaed DOT com>
|
Date: | Thu, 14 Apr 2011 16:14:23 -0500
|
Message-ID: | <BANLkTimdMDRvGZ-S2V5gBUqjbAcyYtuZvw@mail.gmail.com>
|
Subject: | Re: 1.7.9-1: typeahead queue not flushed when Ctrl+C pressed
|
To: | cygwin AT cygwin DOT com
|
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 Thu, Apr 14, 2011 at 13:21, Andy Koppe <andy DOT koppe AT gmail DOT com>
wrote:
> Yep, looks like the NOFLSH bit is ignored. There's no mention of
> it in the Cygwin sources except in sys/termios.h.
>
> Have you confirmed that it behaves as expected on Linux?
This is an ancient part of the line discipline. It predates UNIX,
going back to its ancestors.* In the case of Linux, I tried it most
recently with Ubuntu 8.04.4 LTS, with a 2.6.24-23-xen kernel.
Pressing Ctrl+C clears the input queue and returns the user to the
prompt.
Historically, the terminal driver is one of the most complicated
beasties in a system, so I am doubtful of my ability to come up with
a working patch on my own. Is someone available to help me who groks
the Cygwin code for the line discipline?
Cheers,
MetaEd
* On UNIX, I can confirm from memory that it behaves as expected
back to SunOS 4; the same for contemporary versions of IRIX, Ultrix,
Concentrix, Clix, AIX, SCO, and HP-UX. Cousins of UNIX (such as VMS
and its ancestors) also clear typeahead and return to prompt on
interrupt. For whatever reason, it seems Windows XP does not clear
typeahead, so typeahead is more or less a disaster in the making. I
suppose it has been the same all the way back to DOS, and it is just
too bad Microsoft engineers did not carry the fix over from VMS to
Windows NT when they had the chance.
--
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 -