delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2019/09/07/07:54:15

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: <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.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: <announce DOT 20190829122237 DOT GZ11632 AT calimero DOT vinschen DOT de> <42e43067-e388-709c-d75a-95c5ba055079 AT towo DOT net> <20190907123228 DOT 0906d944716b058213969acd AT nifty DOT ne DOT jp>
From: Thomas Wolff <towo AT towo DOT net>
Message-ID: <e744c7cd-8f99-89b7-af8d-b4c5879924a6@towo.net>
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>
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

- Raw text -


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