delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2026/02/20/12:07:04

DMARC-Filter: OpenDMARC Filter v1.4.2 delorie.com 61KH735f1471699
Authentication-Results: delorie.com; dmarc=pass (p=none dis=none) header.from=cygwin.com
Authentication-Results: delorie.com; spf=pass smtp.mailfrom=cygwin.com
DKIM-Filter: OpenDKIM Filter v2.11.0 delorie.com 61KH735f1471699
Authentication-Results: delorie.com;
dkim=pass (1024-bit key, unprotected) header.d=cygwin.com header.i=@cygwin.com header.a=rsa-sha256 header.s=default header.b=dzYfK2Iu
X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 221084BAD158
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1771607222;
bh=rTJsjPjhWZ+Zlji5GWNL9lskL0Vn3lwqr2BPyz2G/Hk=;
h=Date:To:Subject:In-Reply-To:References:List-Id:List-Unsubscribe:
List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:
From;
b=dzYfK2IuEh/EtXxfy59yC+7p/jCer7iXZl+rxNC61LzhAsOV4LxR3U2kRTEHl9DdK
bg14zLJBi2thPxwbD48+llvL36WWtPIMWlTia4Yz5MNSv0n/I5/9PLaLGoaI313R/s
qgEg7jnqWLYu82z51pG5U2Pxxu1+d0imncwC8cgg=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org D1ECA4BA23C0
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org D1ECA4BA23C0
ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1771607168; cv=none;
b=WArB/34bJQNTC8DrbtTRO9UHxcr15G5NbUTkf5eCuikbpmzcXdW5SdDjAqWdKvup+NaPQENGCIBqpF9LQPQaxGWHS+XpqIeweTy+AdLvUOuE8RhwUwN+lkOfmLDvqt0hogKGnw5e7O26Zy9R4Cf3W78rpOt9tyE4vfz8giSGp5o=
ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key;
t=1771607168; c=relaxed/simple;
bh=k1qdwkP5AnwRujMlGgPzDkvuKcANZZd/nWfE1CHJMl8=;
h=Date:From:To:Subject:Message-Id:Mime-Version:DKIM-Signature;
b=ZVyKpXIcPT7f8VW+Uv3/E39laM2ZgtkmzPESKQunwqmpdwDbpcHSvWfwUp5nmRIQz0ZdUkxRK6VTZbfTMtMzz5CfyYbq2MezwCcCxGMPWV8Bh7FM7QTsvj3q5AtsZ3qD7lbr9bTJq2IOd9F0RgofcC5P6uksXgaQ/2J21lpzSYc=
ARC-Authentication-Results: i=1; server2.sourceware.org
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D1ECA4BA23C0
Date: Sat, 21 Feb 2026 02:06:05 +0900
To: cygwin AT cygwin DOT com
Subject: Re: dynamic conpty loading
Message-Id: <20260221020605.9d56e856ccc6a53d87eebbc9@nifty.ne.jp>
In-Reply-To: <82379405-cb60-4c5b-8a13-39c27ab379cf@towo.net>
References: <f52d9663-b210-497a-867b-5193b420ea0b AT towo DOT net>
<20251121190433 DOT 4a37dc959848a0aea89a8922 AT nifty DOT ne DOT jp>
<62f3c1ae-1fd9-477d-a837-d865094dab06 AT towo DOT net>
<aSCXcoeDbrGOrUTu AT calimero DOT vinschen DOT de>
<cc6b613b-1c02-41e3-b045-5b1723b706ab AT towo DOT net>
<20251126193220 DOT 1b890f58a121add2f0d05fa5 AT nifty DOT ne DOT jp>
<3a6ed5bc-24fd-42b0-9f57-83c8eb678a1b AT towo DOT net>
<20251127172026 DOT 6b6f876fd341f9c0cbd1f876 AT nifty DOT ne DOT jp>
<20251203175638 DOT 0b4f51242c8fdab685ad9b7e AT nifty DOT ne DOT jp>
<1691264462 DOT 1837628 DOT 1764761641527 AT mail DOT yahoo DOT com>
<20251203214927 DOT 6980d78e8956dc6c7f99c4ae AT nifty DOT ne DOT jp>
<a539ef1a-b958-492c-b271-ebaf198f4a5b AT towo DOT net>
<20251207064052 DOT 438f025c5cdc844632e2aba5 AT nifty DOT ne DOT jp>
<7a237de9-ec11-4c41-a873-b37715b436a1 AT towo DOT net>
<20251211210658 DOT 993ac33f7744ca5e6a75ba67 AT nifty DOT ne DOT jp>
<e682ce82-cbfb-400c-bce7-5f824fb4b40c AT towo DOT net>
<20251212074650 DOT cb007dff469bd489e6befb86 AT nifty DOT ne DOT jp>
<d5a86dcb-2d82-48cd-ae6a-509f71eaeb62 AT towo DOT net>
<82379405-cb60-4c5b-8a13-39c27ab379cf AT towo DOT net>
X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.30; i686-pc-mingw32)
Mime-Version: 1.0
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.30
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
From: Takashi Yano via Cygwin <cygwin AT cygwin DOT com>
Reply-To: Takashi Yano <takashi DOT yano AT nifty DOT ne DOT jp>
Errors-To: cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com>

Hi Thomas,

On Mon, 16 Feb 2026 16:27:39 +0100
Thomas Wolff <towo AT towo DOT net> wrote:

> Hi Takashi,
> 
> Am 12.12.2025 um 09:23 schrieb Thomas Wolff via Cygwin:
> > Am 11.12.2025 um 23:46 schrieb Takashi Yano via Cygwin:
> >> On Thu, 11 Dec 2025 15:01:14 +0100
> >> Thomas Wolff wrote:
> >>> Hi Takashi,
> >>>
> >>> Am 11.12.2025 um 13:06 schrieb Takashi Yano via Cygwin:
> >>>> Hi Thomas,
> >>>>
> >>>> Thanks for the reply.
> >>>>
> >>>> On Thu, 11 Dec 2025 10:45:52 +0100
> >>>> Thomas Wolff wrote:
> >>>>> Hi Takashi,
> >>>>> sorry, I just saw this mail right now.
> >>>>>
> >>>>> Am 06.12.2025 um 22:40 schrieb Takashi Yano via Cygwin:
> >>>>>> Hi Thomas,
> >>>>>>
> >>>>>> On Sat, 6 Dec 2025 18:48:29 +0100
> >>>>>> Thomas Wolff wrote:
> >>>>>>> Am 03.12.2025 um 13:49 schrieb Takashi Yano via Cygwin:
> >>>>>>>> On Wed, 3 Dec 2025 11:34:01 +0000 (UTC)
> >>>>>>>> matthew patton wrote:
> >>>>>>>>> the libopenconsole.postinstall script ihas some glaring issues.
> >>>>>>>>>
> >>>>>>>>> * define strings once and then use the variable instead of 
> >>>>>>>>> repeating over and over and over the long-ass path names.
> >>>>>>>>>
> >>>>>>>>> * the wget to STDOUT strikes me as pointless. use curl if 
> >>>>>>>>> you're going to resort to that kind of operation. Otherwise 
> >>>>>>>>> just save the .zip to disk already without gratuitous memory 
> >>>>>>>>> buffering
> >>>>>>>>>
> >>>>>>>>> * /tmp should not be assumed. use $TMPDIR
> >>>>>>>>>
> >>>>>>>>> * use trap to clean up after yourself in both the successful 
> >>>>>>>>> and unsuccessful cases
> >>>>>>>>>
> >>>>>>>>> * 'POSTFIX' makes no sense. it's ARCH or PLATFORM
> >>>>>>>>>
> >>>>>>>>> * personally I would have versions.txt be a tab deliminted 
> >>>>>>>>> file with version_num\tsha256 of x64\tsha256 of x86 or 
> >>>>>>>>> something along those lines.
> >>>>>>>> Thanks!
> >>>>>>> Unfortunately, this does not work for me on Windows 10.
> >>>>>>> And I cannot test on Windows 11; my previous report was bogus, I
> >>>>>>> self-compiled the unpatched cygwin1.dll for a cross-test but it 
> >>>>>>> fails.
> >>>>>>> Running bash from a Windows console, then Cygwin console works, 
> >>>>>>> also
> >>>>>>> running wsl from there. Running `mintty -h alw` says
> >>>>>>> The handle is invalid.
> >>>>>>> Error code: Bash/Service/ERROR_INVALID_HANDLE
> >>>>>> Thansk for testing.
> >>>>>> Do you mean `mintty -h alw` works on self-compiled-unpatched
> >>>>>> cygwin1.dll but does not work on self-compiled-patched cygwin1.dll?
> >>>>> No, I mean in my Windows 11 system, it failed even with a 
> >>>>> self-compiled
> >>>>> unpatched cygwin1.dll, right now.
> >>>>> (I was having cygwin build problems before...)
> >>>>> So I took a fresh approach, fresh git clone, then followed the
> >>>>> cumbersome build instructions (which I had put into my own configure
> >>>>> wrapper and used to work before).
> >>>>> Not quite understanding the purpose of that package, or the 
> >>>>> postinstall
> >>>>> script which told me
> >>>>> cat: /etc/libopenconsole/version.txt: No such file or directory
> >>>>> sha256sum:
> >>>>> /etc/libopenconsole/Microsoft.WindowsTerminal__x64.zip.sha256: No 
> >>>>> such
> >>>>> file or directory
> >>>>> , I just copied OpenConsole.exe manually into /bin. And yes, now it
> >>>>> works in Windows 11, even with OpenConsole from WT 1.23 (which is 
> >>>>> a bit
> >>>>> surprising as there was a bug which they fixed later).
> >>>>>
> >>>>> Copied the solution to Windows 10 but unfortunately it does not work
> >>>>> there. Kind regards Thomas
> >>>> What happens in Windows 10 case? Does cygwin itself start and it
> >>>> has a problem when starting non-cygwin app? Or does not start at all?
> >>> No, wsl was running normally, just the fixes of terminal interworking
> >>> (esp. character attributes, test file attached) did not work.
> >>> ...
> >>>
> >>>> In my environment, patched cygwin1.dll works under both Win10 and 11.
> >>> Well, yeah, I gave it a fresh go under Win10 as well and miraculously
> >>> now it works!
> >>> With OpenConsole from either 1.23, 1.24 pre-release, or 1.25 "canary".
> >>> Thanks a lot for making this work.
> >> Thanks for testing and the test file.
> >> With mintty 3.8.1, the test script works with the following settings,
> >> with/without wls in mintty window.
> >>
> >> Show bold: as font
> >> Allow blinking: on
> >> Show dif as fot: on
> >>
> >> Without OpenConsole.exe, "5: text blinking" and "6: text blinking 
> >> rapidly"
> >> are the same result and "CMYK colour" does not work while all attributes
> >> work with OpenConsole.exe.
> > Actually, with the original Windows conhost.exe in $WINDIR/System32 
> > (size 867KB),
> > all attributes in the test file except normal blinking are broken for 
> > me; bold is the only one rendered but enforces white colour.
> > The patch plus OpenConsole.exe fixes this, not only for wsl but also 
> > for Windows console programs, test case
> > cmd /C type xtextattr1
> >
> > Another test case:
> > wsl sh -c '/bin/echo -e "\e[c\e[>c"'
> >
> >> Thanks!
> > Thanks to you. Will the patch be available as a cygwin release or 
> > prerelease soon?
> > Thomas
> >
> I'd like to bundle this solution with mintty for the wsltty standalone 
> package. I could bundle a patched version but I'd prefer an official 
> release or at least test release for publishing.
> I haven't seen this patch yet in the git repository, when will it be 
> ready for cygwin 3.7.0?

I've just submitted a patch series for OpenConsole.exe support
to cygwin-patches AT cygwin DOT com.

Please wait for review.

-- 
Takashi Yano <takashi DOT yano AT nifty DOT ne DOT jp>

-- 
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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