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:subject:to:references:from:message-id:date :mime-version:in-reply-to:content-type :content-transfer-encoding; q=dns; s=default; b=hIVIXXEvKH8dN6XZ 4+U6tDjlUDTfwjCrvYXtTEan0IGOT8FKVCr6s268FiBdVa75PZumu40zGccMkEkU cKu0S72woBHRJCsZE3ZXfdjdE+B5A9wFujmdIl4SHXIpcRAi6UqjxkYhqhbkmVIO uc9fZLp3Diq97y/k8r3cuBe5LE0= 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:subject:to:references:from:message-id:date :mime-version:in-reply-to:content-type :content-transfer-encoding; s=default; bh=FPxfJaF8qwCfrZNSmB+tvC iyrPk=; b=ejk6mCmQp0yQmSCiYJOvHAMLTwLIElFvazw+Ll5Kcl70aZEOmRQHmn 70XyTyq94hC61SDlwKvR2hCQp+2D7ltDkF+sMrOnSl/7T8tS0E5uK2JErJg6ppET tWHdpARxEOUlXfjUw/xKJAZXTD1l2MPnQdb04oAUBqHlBPBh68cJ8= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , 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.8 required=5.0 tests=AWL,BAYES_00,KAM_NUMSUBJECT,RCVD_IN_DNSWL_NONE autolearn=no version=3.3.1 spammy=Wolff, wolff, enquiry, responds X-HELO: mout.kundenserver.de Subject: Re: [ANNOUNCEMENT] TEST: Cygwin 3.1.0-0.3 To: cygwin AT cygwin DOT com References: <42e43067-e388-709c-d75a-95c5ba055079 AT towo DOT net> <20190907123228 DOT 0906d944716b058213969acd AT nifty DOT ne DOT jp> From: Thomas Wolff Message-ID: Date: Sat, 7 Sep 2019 13:53:16 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <20190907123228.0906d944716b058213969acd@nifty.ne.jp> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Am 07.09.2019 um 05:32 schrieb Takashi Yano: > On Fri, 6 Sep 2019 12:02:36 +0200 > Thomas Wolff wrote: >> A tool that sets up conpty itself (rawpty from >> https://github.com/Biswa96/wslbridge2) does not work anymore with >> conpty-enabled cygwin. This suggest that double-conpty enabling may be >> interfering. >> Unfortunately, I have not yet had the time to checkout the patch code in >> detail, but my suspicion is that conpty may be enabled always, while it >> should in fact be activated only if a non-cygwin program is run. >> Please check out on this. > I have not looked into this yet, but as you might expect, the pseudo > console is always enabled behind even if it is not used. > > Owing to this, a cygwin program which directly accesses the console, > as your previous test case, can work normally by just switching the > r/w pipe to pseudo console side. I guess you are right. We are having different use cases. For the generic case, the always-enabled conpty support is probably the best solution. However, there are exceptions. One particular case is the gateway to WSL (wslbridge, wslbridge2, hvpty). When you run WSL from cygwin with conpty enabled, unfortunately, the pseudo console will enforce MS's idea of what a terminal is, i.e., it handles escape sequences, does not pass everthing through, responds to enquiry sequences itself, so the terminal cannot even report itself as mintty (or whatever) anymore. This unfortunate situation may hopefully resolve once they provide conpty "passthrough mode" as discussed in https://github.com/microsoft/terminal/issues/1173 and also in https://github.com/mintty/wsltty/issues/171#issuecomment-526778377. So there is need to switch off conpty support for certain applications, e.g. via the CYGWIN environment variable. Please consider. Thomas -- 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