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: References: From: Edward McGuire Date: Thu, 14 Apr 2011 16:14:23 -0500 Message-ID: Subject: Re: 1.7.9-1: typeahead queue not flushed when Ctrl+C pressed To: cygwin AT cygwin DOT com Content-Type: text/plain; charset=UTF-8 Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , 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 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