delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2025/12/05/15:06:29

DMARC-Filter: OpenDMARC Filter v1.4.2 delorie.com 5B5K6SH31446484
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 5B5K6SH31446484
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=QDEzNVoS
X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 85A334CCCA31
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1764965187;
bh=RayuY3ZiShcngd8bJelVhtj2Aktv9aWc2/+FMeroiHo=;
h=Date:Subject:To:References:In-Reply-To:List-Id:List-Unsubscribe:
List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc:
From;
b=QDEzNVoSGY7xiBVogntj8hl0QcUcCzklDFp9gPuTRm6NKK5zRcjPfafMtlTqteNQZ
Z5O202TsPkwgmW51fCqgmrIZ2sxbi8EALQb6QpbKcI6aK+RP2CPy7A8/nF3USJr5pX
4cD8hCH1KnQvJA0Fxa3GjmAV1kLOJxQBVTbNyE4Y=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 51F5B4C515F0
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 51F5B4C515F0
ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1764965138; cv=none;
b=kQIklYLZ33gDSrziWXinpzQpvTEWjN5weiB+vpV7YRZO/9BJdoh1OBFaCB2Rmooq0XlcDBlL0VG9EfICmttUfVPBPyWN7fG8A1CoSftJe3NfK53Fu58xMNQ0Iq+UaQ0V4Pj6q/xswL6s+bKA6q3WYsYfIfZaKE+X2bKok0SqM3Y=
ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key;
t=1764965138; c=relaxed/simple;
bh=sY1MEhV6RjSRTTCSMVep+kqYJOL8zVjnUjwJmDpmXCo=;
h=Message-ID:Date:MIME-Version:From:Subject:To:DKIM-Signature;
b=rTq/zUxcKXrhbXIb/Q6h3TSNPrp27Hz/qFqXH6Tzxqnq0qQ/x4Buj6J8i3bxwCbGG3kgKDEvW2WAIqta1LLJ7MwpJPEwNTZbDDlh7MbyE6pIl6w/XifroNNrhJBs1VqtuRAw/AtycjzALIy6sC2df5O8ZAtK2eHEEjY2iMuyiUI=
ARC-Authentication-Results: i=1; server2.sourceware.org
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 51F5B4C515F0
Message-ID: <2242fc12-b17b-4519-b272-2cdf28852269@SystematicSW.ab.ca>
Date: Fri, 5 Dec 2025 13:05:34 -0700
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Subject: Re: dynamic conpty loading
To: cygwin AT cygwin DOT com
References: <30deef29-ba20-49d9-9b38-28020941b0ef AT towo DOT net>
<707f4d4c-a20d-4f1d-bdbd-65a2392dea15 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>
<aTFqJo4J6oup4yzH AT calimero DOT vinschen DOT de>
<20251205185220 DOT 26512b609b7e96b388245244 AT nifty DOT ne DOT jp>
Organization: Systematic Software
In-Reply-To: <20251205185220.26512b609b7e96b388245244@nifty.ne.jp>
X-Stat-Signature: x6fiyjmp9dzhtpjzk7hir9aqpf7mrowz
X-Rspamd-Server: rspamout03
X-Rspamd-Queue-Id: 5EFA720032
X-Session-Marker: 427269616E2E496E676C69734053797374656D6174696353572E61622E6361
X-Session-ID: U2FsdGVkX18nS00cE3O+Lf6tKJoNcm+Y/bctvOQOp18=
X-HE-Tag: 1764965136-467278
X-HE-Meta: U2FsdGVkX1+mOvfEl7dDjV+grr52wQ8Jzn78AItWOkGWjPIHFP1Lsq33u2qrnJft7DUzviOfxU65jqMfeQg6DjZ1Mx+5yzFDHahyx3IzjI3r0lZbGxGaIW4VnqKXfz0izHQ47TQZpebK6sFB98Flczf2qDGq/LDIyKTUpISYqufAd/5oMnZ6eY4wjAez5smMWgpBxzF/BmmXVn+5kAnmcWcitOV1EX0arjTMPa63GnzmxtBoF1caUuJr62vBuFZMwW34JLlzm7ojyDHLR3VRyyL3R5F5meflzD8WSn1Ejk4+xzsrPOjgSdOszw4ZdyhNCCtpadC3d1v+oxDI/qGUWqF6fxmk9qeDOhU/xPfGkzDDH7L5bhVhQijm/rDg4He2EHkqzXCr/vSUn+alBCNcPv2dfi9+scOCbL3UxFcgyvZUG/Bow7unQg==
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: Brian Inglis via Cygwin <cygwin AT cygwin DOT com>
Reply-To: cygwin AT cygwin DOT com
Cc: Brian Inglis <Brian DOT Inglis AT SystematicSW DOT ab DOT ca>
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>
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 5B5K6SH31446484

On 2025-12-05 02:52, Takashi Yano via Cygwin wrote:
> Hi Corinna,
> Thanks for the comment.
> On Thu, 4 Dec 2025 12:01:58 +0100
> Corinna Vinschen wrote:
>> On Dec  3 17:56, Takashi Yano via Cygwin wrote:
>>> Subject: [PATCH v2] Cygwin: pty: Experimental OpenConsole.exe support
>> Some commit message here?  Yeah, I know, it's just experimental for now :)
>>
>>> Signed-off-by: Takashi Yano <takashi DOT yano AT nifty DOT ne DOT jp>
>>> +  size_t towrite = len;
>>> +
>>>     ssize_t ret;
>>>     char *p = (char *) ptr;
>>>     termios &ti = tc ()->ti;
>>> @@ -2152,7 +2284,7 @@ fhandler_pty_master::write (const void *ptr, size_t len)
>>>   	 If the reply for "CSI6n" is divided into multiple writes,
>>>   	 pseudo console sometimes does not recognize it.  Therefore,
>>>   	 put them together into wpbuf and write all at once. */
>>> -      static const int wpbuf_len = strlen ("\033[32768;32868R");
>>> +      static const int wpbuf_len = 64; /* for response to CSI6n nad CSIc */
>>
>> Is there some macro for the count of 64 in this context, by any chance?
> 
> I'm not sure for now that 64 is really enough for the responce to ESC[c.
> mintty returns about 30 byte responce. But some other terminal may return
> longer responce.

https://invisible-island.net/xterm/ctlseqs/ctlseqs.html#h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Ps-c.1CA3

Responses include \e [ ? # # c 6 for base ctl seq plus term type e.g. 64 from 
mintty; plus ";" separated attributes up to 7 (round to 8) each single digit and 
8 double digit => 6 + 16 + 24 <= 46
e.g. for mintty \e[?64;1;2;4;6;9;11;15;21;22;28;29c => 6 + 10 + 18 = 34

Could default to column width if longer to allow room for prompts and titles; 
max parameter value lengths are 5 digits; text strings may be longer; querying 
8/16/88/256 colour palettes or similar could require more space.

>>> if [ $(uname -m) = "x86_64" ]
>>> then
>>> 	POSTFIX="x64"
>>> else
>>> 	POSTFIX="x86"
>>
>> Do we really want a 32 bit version?  Isn't there an aarch64 version?
> 
> No. What should we assume result of "uname -m" in aarch64 machine?

WSL should work on ARM and reports of uname say aarch64.
-- 
Take care. Thanks, Brian Inglis              Calgary, Alberta, Canada

La perfection est atteinte                   Perfection is achieved
non pas lorsqu'il n'y a plus rien à ajouter  not when there is no more to add
mais lorsqu'il n'y a plus rien à retrancher  but when there is no more to cut
                                 -- Antoine de Saint-Exupéry

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