This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Win PTY library.
On 9/17/2012 7:03 AM, Daniel Colascione wrote:
> 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.
>>
>> 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 buffer in
> this context, you deadlock.)
Well, that's exactly what Console2 does, and it works pretty well. I've
never seen any "missing" data when using it. I don't know what they're
doing to work around the deadlock issue, but whatever it is it works.
--
Chuck
--
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