delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2012/09/17/07:03:41

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-7.5 required=5.0 tests=AWL,BAYES_00,KHOP_PGP_SIGNED,KHOP_THREADED,RP_MATCHES_RCVD,SPF_HELO_PASS
X-Spam-Check-By: sourceware.org
Message-ID: <5057036D.3080304@dancol.org>
Date: Mon, 17 Sep 2012 04:03:09 -0700
From: Daniel Colascione <dancol AT dancol DOT org>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:12.0) Gecko/20120428 Thunderbird/12.0.1
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: Win PTY library.
References: <CA+sc5mnmVykGQLMvf3GXnf5RUM3SHVP6C5PreJ+F4dSksX3+Sw AT mail DOT gmail DOT com> <20120915162136 DOT GB25529 AT ednor DOT casa DOT cgf DOT cx>
In-Reply-To: <20120915162136.GB25529@ednor.casa.cgf.cx>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.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

--------------enig4A3A252609196ED1B168EE4B
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

On 9/15/2012 9:21 AM, Christopher Faylor wrote:
> On Sat, Sep 15, 2012 at 12:15:49PM -0400, Earnie Boyd wrote:
>> I just discovered https://github.com/rprichard/winpty and thought
>> Cygwin users and developers may be interested.  The license is MIT
>> style.
>=20
> Looks interesting.  I've had something similar sitting around in my
> Cygwin sandbox for a while.  It would be nice to have a real console-based
> pty implementation.

Unfortunately, this program works by polling and scraping a hidden console
window. Any approach of this type will lose data. (No, you can't synchronize
your scraping by using console accessibility APIs because conhost calls out=
 into
accessibility with its locks held, and if you try to read the console buffe=
r in
this context, you deadlock.)

The best userspace solution would be chained DLL injection, but this approa=
ch
has its own problems --- the console handle can get decoupled from the DLL
injection in a number of ways. The most robust approach would be an NT filt=
er
driver attached to the console driver itself. That'd only work on systems w=
ith a
non-insane console layer (i.e., post-Vista systems), and you'd have to figu=
re
out the internal console communication protocol.


--------------enig4A3A252609196ED1B168EE4B
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAlBXA3EACgkQ17c2LVA10Vv2tQCeIse5yMiXTRaeBn3FzY8xALB2
xU0AmgOmIFgxpsFQHqoeKyhTUtO+lK17
=JUn2
-----END PGP SIGNATURE-----

--------------enig4A3A252609196ED1B168EE4B--

- Raw text -


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