delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/07/15/10:53:03

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Date: Thu, 15 Jul 2010 10:52:52 -0400
From: Christopher Faylor <cgf-use-the-mailinglist-please AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Problem with select() on console
Message-ID: <20100715145252.GB25506@ednor.casa.cgf.cx>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <4C3E59E3 DOT 4050003 AT hones DOT org DOT uk> <20100715054952 DOT GB10561 AT trixie DOT casa DOT cgf DOT cx> <4C3EF7BB DOT 4040204 AT hones DOT org DOT uk> <4C3F02F7 DOT 5040301 AT hones DOT org DOT uk>
MIME-Version: 1.0
In-Reply-To: <4C3F02F7.5040301@hones.org.uk>
User-Agent: Mutt/1.5.20 (2009-06-14)
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, Jul 15, 2010 at 01:45:43PM +0100, Cliff Hones wrote:
>Cliff Hones wrote:
>> I must look at the console source...
>
>And now I have, and I see that fhandler_console does its own line
>editing, so is perfectly aware of the input line state.  So blocking as
>soon as any key is typed seems a shortcoming of cygwin, not windows?

You could say that about just about everything that Cygwin has problems
with.  For instance, the fact that Cygwin's ptys aren't properly
recognized by pure Windows programs is a limitation of Cygwin too.  It
really isn't an interesting distinction since it boils down to a cost/benefit
situation.

>I see there may be a difficulty with storing incomplete lines, or with
>synchronizing processing of new console events seen by different cygwin
>threads/processes, and it may be deemed unworthwhile (especially as it
>doesn't seem to be a frequently raised question), but to it seems
>doable.

The readahead stuff in fhandler_console.cc (which I wrote) was intended
to be used for small amounts of data.  Extending it to properly handle
cooked mode would be quite an undertaking.

Since, as Andy pointed out, most sophisticated applications used
something like readline, this has not come up previously that I can
recall.  So, this is a PTC case.

cgf

--
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