delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2019/09/01/02:34:01

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:mime-version:references:in-reply-to:from:date
:message-id:subject:to:content-type; q=dns; s=default; b=jPv8H2w
q6d/PpIXLo8/cfDkLSDrQlG3SvT5MjVK5fclG+L9BZ3Tr9+kJsVpgFLbv88Z1sgz
7m/St/v13nBIxVonwDTtSQFspGReEZfFzjbakGbLZu8+5t+qUfjFe73TjSVzlx/Z
hDpBT958uEzAeovKjpEh1Eeg6dtqt6ONexy0=
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:mime-version:references:in-reply-to:from:date
:message-id:subject:to:content-type; s=default; bh=Zw+Ii3BG+5HHU
MQG/dxS9xKnVE4=; b=RV5DIGgdSZyqCxdyaWgHwM0Egj77uRKzS/t/bBSxloCBF
6w/lB0GxIfCbfWvguuXw7ZGSSthQJXw+hyRrm6MY41UQqRgH1+fU4DABOw1G2ncg
ZA9gQYjLi8vgLr0RalvHZc1ab3T7fpFBHFaS2BghNI+ECeAiI0sBwG6i9Fpotc=
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
Authentication-Results: sourceware.org; auth=none
X-Spam-SWARE-Status: No, score=-1.5 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,HTML_MESSAGE,KAM_NUMSUBJECT,MIME_BOUND_DIGITS_15,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=no version=3.3.1 spammy=undocumented, occasionally, biswa96, Biswa96
X-HELO: mail-io1-f44.google.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=ztGaznrVbmMZviX/wOx4rwtDvdCZ9FKtZ/ow2MS3hSw=; b=TCT8A5L+Kl6sa30FhCi0Xh1EeGk6mUioYB1AmBV3O49IipcJ+gHafUowdLth86OhXW 6U6bAMKrOJJd44vFJ7qvsXTkA0Vd2YW9T2AP3Z93CZ0OEP17bhE+YI4IrhhLumb60hEq bnBSSt0QzwdPHngulwuPtfKvG6dCOGLlvcuivfTLbdmEhuDrE9WIel4quJ0aww881Ipa GwlKw+i2NaFXp8afAGo739eGdkh6RZ0ZQoHR34zGfM+alAz+96rSCC5N8ZpS+79/K+L7 XKdfiVX8AqfUHF4TpDtzOlRrHWtFnFo/xE+sQcthUoBiXO7bb//SDFDy3jozf87nXAjY Xwgw==
MIME-Version: 1.0
References: <announce DOT 20190829122237 DOT GZ11632 AT calimero DOT vinschen DOT de> <CALK-3mLPXAcjZdftE_L-YwneyM79GBEt8c1nyVTisjKp0abCUg AT mail DOT gmail DOT com> <20190830075523 DOT GB27273 AT calimero DOT vinschen DOT de> <20190831032003 DOT d19fb7060c632bb51777c0de AT nifty DOT ne DOT jp> <CALK-3mKnHy5tGzi4kkf7CZ4m-6x1fGwBsk=bc8Jv1KFoU_reHA AT mail DOT gmail DOT com> <20190831131814 DOT 2f6c9969a4380a457e61d91b AT nifty DOT ne DOT jp>
In-Reply-To: <20190831131814.2f6c9969a4380a457e61d91b@nifty.ne.jp>
From: Biswapriyo Nath <nathbappai AT gmail DOT com>
Date: Sun, 1 Sep 2019 12:00:32 +0530
Message-ID: <CALK-3mK1okwXg2by==QoHMOM-rwQvBHDj1pD9mBNCdSxPmTXHA@mail.gmail.com>
Subject: Re: [ANNOUNCEMENT] TEST: Cygwin 3.1.0-0.3
To: "cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com>
X-IsSubscribed: yes

To Corinna Vinschen:

> We can only use what's part of the current w32api-headers package.

I occasionally contribute to mingw-w64 repository. Is there anything I can
do so that cygwin uses latest headers and libraries from mingw-w64?

To Takashi Yano:

> Then, is it possible to DuplicateHandle() for three handles in HPCON to
other process which calls ioctl() with new HPCON?

** THE FOLLOWING PROCEDURE USES UNDOCUMENTED AND UNSTABLE CODE **

To use HPCON in another process, first cast it to a pointer of struct of
three handles as below:

    struct HPCON_INTERNAL {
        HANDLE hWritePipe;
        HANDLE hConDrvReference;
        HANDLE hConHostProcess;
    };

    HPCON hpCon;
    HRESULT hRes = CreatePseudoConsole(consoleSize, hPipePTYIn,
hPipePTYOut, 0, &hpCon);
    HPCON_INTERNAL *hpConInt = hpCon;

Then **inherit** and use hpConInt->hWritePipe to write the resize signal.
Get detail information about that buffer here[1]. Sample in my repo[2].

[1]:
https://github.com/microsoft/terminal/blob/master/src/host/PtySignalInputThread.cpp
[2]: https://github.com/Biswa96/wslbridge2/blob/master/rawpty/rawpty.cpp

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