delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2013/07/26/02:45:05

X-Recipient: archive-cygwin AT delorie DOT 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:message-id:date:from:mime-version:to:subject
:references:in-reply-to:content-type; q=dns; s=default; b=vUMCuo
4GF31DTNgOhRUVIveOnyTHKw3BOyl2E8vA4CX/uu9qeQ7GfUoOCyr4TE4OGQ3mGm
e2yz/0HUUR8hqIQ7RA0y0ezUbF4fMHEUJPSxETWHCujfe5l+qPQbOG+Drr6tK8hT
2wDlaPaU8ed3nINxiucvlM5qNoiG1zJsAGWRI=
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:message-id:date:from:mime-version:to:subject
:references:in-reply-to:content-type; s=default; bh=e+eukrTfZ/aI
WWFdmHqzGFI8Puo=; b=UjZT0a6629dQcXT/FpPPrSVcLd37oQRtzQyD1ZOOFAFu
2tOpmmWBpD0HdNqZ2AKFX0SbtmUYKXzdWRJmdvobYCr4KW1nODJ2tlQGbS7t7JDJ
Y9QyIxKcyxIhHfSD/fdkjgJJ6TxHdKHuWqrG1H1J/0/dgmSgKXt5ZeeShAj2tm8=
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
X-Spam-SWARE-Status: No, score=-5.7 required=5.0 tests=AWL,BAYES_50,KHOP_PGP_SIGNED,KHOP_THREADED,RDNS_NONE,SPF_HELO_PASS,SPF_PASS autolearn=no version=3.3.1
Message-ID: <51F21AD0.5090107@dancol.org>
Date: Thu, 25 Jul 2013 23:44:32 -0700
From: Daniel Colascione <dancol AT dancol DOT org>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130620 Thunderbird/17.0.7
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: ptys - I give up
References: <20130726061334 DOT GA3780 AT ednor DOT casa DOT cgf DOT cx>
In-Reply-To: <20130726061334.GA3780@ednor.casa.cgf.cx>
X-Virus-Found: No

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

On 7/25/2013 11:13 PM, Christopher Faylor wrote:
> It has been suggested here a couple of times that it might be a good
> idea for Cygwin to fill out the block that it sends to subprocesses with
> information that fools msvcrt programs into thinking that its ptys are
> really consoles.

My suggestion was to use the lpReserved2 CRT block to send fake filetype
information, but there's something better.

Ugly, only half-implemented, but better: a hook-based pseudoconsole system =
for
Windows. I got as far as implementing the actual console system hooks, but
didn't wire them up to anything (like Cygwin ptys). I was about to start wr=
iting
a test suite for it and got distracted. In principle, something like this m=
akes
it possible to also grant job control to groups of regular windows processe=
s.
(Since you then know which ones belong to which process groups.)

https://github.com/dcolascione/conio

I have no idea whether this even builds anymore. I haven't compiled it in m=
onths.



------enig2EDVFKFPLOPKERKNLEKKJ
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.13 (Cygwin)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iEYEARECAAYFAlHyGtYACgkQ17c2LVA10VuqeQCfZ5o5I3y4Br2gU5wZ8JZk0mzZ
UHIAn0MfO/UIGtAye5VNfCDZswpTlx7f
=n4Ur
-----END PGP SIGNATURE-----

------enig2EDVFKFPLOPKERKNLEKKJ--

- Raw text -


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