X-Recipient: archive-cygwin@delorie.com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:date:from:to:subject:message-id:reply-to
	:references:mime-version:content-type:in-reply-to; q=dns; s=
	default; b=AQlYTV5mcIvE80/7dnXtzrrOdBc4e9sXC17EYrwoPSzIXRaLUoe+I
	7lRxbc961vCGnFh4A9Te8bLdxXkhDsea0lQ7ae7wO8cToFG0lqLxezCiyUMalNd9
	l8GUKW0wYwVeEu9xaxovLRsPrHBbmjD6dtY6YKhBEzc7/LaNlfpYXU=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:date:from:to:subject:message-id:reply-to
	:references:mime-version:content-type:in-reply-to; s=default;
	 bh=ugU/3giHqUz7QsweUaXutU4ucYQ=; b=mMgCn39OunEZAo0ujI+FEl7F2zV0
	vh5V19aRwFXK/RogpXmqbojkxdlkGq7ersIKazvRs2E8qrTOlX8tCoyqrET5t9lq
	0mOBcvUiPY1zRuYWnF5PwAaD0G3Fc9xGd6cM7CQw5Ztk/+BaLOGTF9+ZDA/HLCqx
	y3Fgma/N2nUI+nA=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
X-Spam-SWARE-Status: No, score=0.2 required=5.0 tests=AWL,BAYES_50,RDNS_NONE autolearn=no version=3.3.1
Date: Fri, 26 Jul 2013 18:35:08 +0200
From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: ptys - I give up
Message-ID: <20130726163508.GA25789@calimero.vinschen.de>
Reply-To: cygwin@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
References: <20130726061334.GA3780@ednor.casa.cgf.cx> <51F21AD0.5090107@dancol.org> <20130726152702.GC4495@ednor.casa.cgf.cx> <51F2A21F.60302@dancol.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
In-Reply-To: <51F2A21F.60302@dancol.org>
User-Agent: Mutt/1.5.21 (2010-09-15)

On Jul 26 09:21, Daniel Colascione wrote:
> On 7/26/2013 8:27 AM, Christopher Faylor wrote:
> > On Thu, Jul 25, 2013 at 11:44:32PM -0700, Daniel Colascione wrote:
> > 
> >> Ugly, only half-implemented, but better: a hook-based pseudoconsole
> >> system for Windows.
> > 
> > This is what I was holding out for.  The last time it came up here,
> > people seemed vehemently opposed to the idea since implementations that
> > do this (like the Console app and a couple of libraries floating around)
> > seem to have to poll the console looking for data and that could result
> > in data loss.
> > 
> > I have had code (not mine) sitting in my Cygwin directory for years
> > which does this but I couldn't 100% convince myself that the detractors
> > for this idea weren't right.  Does your code work around this?
> 
> I'm also against screen scrapers. That's why I wrote this library: it doesn't
> poll. It actually intercepts console APIs and implements console handles as
> pseudohandles, just like Windows <= 7 did, forwarding console API requests to a
> server. Any console program that works with Windows 7 should work with this
> library.

Out of curiosity, can you expand what you mean here?  I see a difference
between Windows pre-7 and Windows 7 and later.  Before Windows 7, the
consoles seemed to be handled entirely by the csrss process.  If you
started bash directly, there was no other visible process involved.
Starting with Windows 7 there's  suddenly a "conhost" process for each
console.

Just as a side note, Windows 7's new conhost also broke the method to
start an invisible console by creating it in a new, invisible WindowStation,
and that still hasn't been fixed in Windows 8, despite my bug report
during the W7 beta...


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat

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

