From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.126.133]) by sourceware.org (Postfix) with ESMTPS id 010F4398D029 for ; Fri, 17 Jul 2020 14:59:59 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 010F4398D029 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=towo.net Authentication-Results: sourceware.org; spf=none smtp.mailfrom=towo@towo.net Received: from [192.168.178.45] ([95.90.245.244]) by mrelayeu.kundenserver.de (mreue011 [212.227.15.167]) with ESMTPSA (Nemesis) id 1M5wc7-1juV6L2VVj-007XdF for ; Fri, 17 Jul 2020 16:59:58 +0200 Subject: Re: New implementation of pseudo console support (experimental) To: cygwin-developers@cygwin.com References: <20200513211609.011d188c3a735b00d55591df@nifty.ne.jp> <20200514182859.c5236a8889ab3081d2e8c937@nifty.ne.jp> <20200514183420.c246647a6d9e396d42c6b47e@nifty.ne.jp> <20200516092956.74369d694d611b1dcd095607@nifty.ne.jp> <20200516164735.2a2ef183788b151e9185ef41@nifty.ne.jp> <20200519224018.746f6324badd8a5762df42b1@nifty.ne.jp> <20200525195332.cf60ab2f38d167a76513740e@nifty.ne.jp> <20200526100955.30b1a2baea517e0565f30db6@nifty.ne.jp> <20200529004024.0c2ac3c68b588bda987e0837@nifty.ne.jp> <20200701204751.27609a8f5701010468521a87@nifty.ne.jp> <20200717111912.GG3784@calimero.vinschen.de> <5a952942-239a-997c-9e5c-5ce8cfd0bfb0@towo.net> From: Thomas Wolff X-Tagtoolbar-Keys: D20200717165956734 Message-ID: Date: Fri, 17 Jul 2020 16:59:56 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <5a952942-239a-997c-9e5c-5ce8cfd0bfb0@towo.net> Content-Type: multipart/mixed; boundary="------------870A854EA3986788D449D0D1" X-Provags-ID: V03:K1:B2BrSk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HipN65rD5dBrnPNMjCanAC0IWNbCc4IHjpI2na1kiU/S1hoC660jjJAmwLBaHfE X-Spam-Status: No, score=-7.4 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS, KAM_LAZY_DOMAIN_SECURITY, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_NONE, TXREP autolearn=no autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: cygwin-developers@cygwin.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Cygwin core component developers mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Jul 2020 15:00:01 -0000 This is a multi-part message in MIME format. --------------870A854EA3986788D449D0D1 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Am 17.07.2020 um 14:47 schrieb Thomas Wolff: > Am 17.07.2020 um 13:19 schrieb Corinna Vinschen: >> Hi Takashi, >> >> On Jul  1 20:47, Takashi Yano via Cygwin-developers wrote: >>> On Fri, 29 May 2020 00:40:24 +0900 >>> Takashi Yano via Cygwin-developers >>> wrote: >>>> On Tue, 26 May 2020 10:09:55 +0900 >>>> Takashi Yano via Cygwin-developers >>>> wrote: >>>>> On Mon, 25 May 2020 19:53:32 +0900 >>>>> Takashi Yano via Cygwin-developers >>>>> wrote: >>>>>> On Tue, 19 May 2020 22:40:18 +0900 >>>>>> Takashi Yano via Cygwin-developers >>>>>> wrote: >>>>>>> On Sat, 16 May 2020 16:47:35 +0900 >>>>>>> Takashi Yano via Cygwin-developers >>>>>>> wrote: >>>>>>>> On Sat, 16 May 2020 09:29:56 +0900 >>>>>>>> Takashi Yano via Cygwin-developers >>>>>>>> wrote: >>>>>>>>> Fix a small bug caused when stdio is redirected to another pty. >>>>>>>> Fix another bug caused when stdio is redirected to another pty. >>>>>>> Revise the patch to fit the current git head. >>>>>> Revise the patch again to fit the current git head. >>>>> Make app, which reads stdin, work under gdb. >>>> * Prevent ResizePseudoConsole() calls unless the pty is resized. >>>> * Revise the patch to fit the current git head. >>> Revise the patch to fit the current git head. >> are you satisfied with the code?  If you want to merge it, >> I'd bump Cygwin to 3.2. > (blush) I apologize, I had promised to run my test cases. > Beginning with it, the first succeeded, the second failed: > run notepad (from mintty), click back into terminal, enter ^Z > It says "Stopped" but the process is gone. > > Continuing may test suite soon... OK, so here are finally my updated test results: resize terminal while running Windows cmd run cmd, resize, run dir/P: ✓works terminal reports in response to request escape sequences ("\033[6n", "\033[0c", "\033[>c", '\033[18t', '\033]10;?\033\') ✓works output to alternate screen echo -e "\e[?1047h"; cmd ✓works cmd from other terminal: echo -e "\e[?1047h" > /dev/pty... ↯no output; weird behaviour on ^C, mintty terminating (also in 3.1.6) signal handling/mediation; catch SIGTSTP run notepad, click back into terminal, enter ^Z ↯fails, notepad is terminated -> this is a regression, ^Z,^C,^\ used to be ignored character set conversion from Windows cmd line program run xcopy (Windows system language e.g. German), watch error message ✓works in Unicode terminal ✓works in non-Unicode terminal (e.g. LC_ALL=C.CP850 mintty) handling non-ASCII characters in non-Unicode terminal + native interworking LC_ALL=en_US mintty, check locale charmap -> ISO-8859-1 echo ö | od -t x1 -> 0xF6 ✓works cmd /c echo ö | od -t x1 -> 0x94 ↯fails (also in cygwin 3.1.6) using wincon.c, compiled with x86_64-w64-mingw32-gcc run program, check colour of second output, give non-ASCII input, check echo ✓works in Unicode mintty ✓works in non-Unicode mintty using attached wincon.c, compiled with gcc run program, check colour of second output, give non-ASCII input, check echo ↯no output (regression, works in 3.1.6) using attached program sgr.java run program, check coloured output of middle characters ✓works (did not in 3.1.6) --------------870A854EA3986788D449D0D1 Content-Type: text/plain; charset=UTF-8; name="wincon.c" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="wincon.c" I2luY2x1ZGUgPHdjaGFyLmg+CiNpbmNsdWRlIDx3aW5kb3dzLmg+Cgp2b2lkIG1haW4oKQp7 CiAgd2NoYXJfdCAqIHMgPSB1ImLDpGggM+KCrCDllZVcbiI7CiAgSEFORExFIGNvbm91dCA9 IEdldFN0ZEhhbmRsZShTVERfT1VUUFVUX0hBTkRMRSk7CiAgRFdPUkQgbGVuOwoKICBXcml0 ZUNvbnNvbGVXKGNvbm91dCwgcywgd2NzbGVuKHMpLCAmbGVuLCAwKTsKCiAgU2V0Q29uc29s ZVRleHRBdHRyaWJ1dGUoY29ub3V0LCBGT1JFR1JPVU5EX0dSRUVOKTsKICBXcml0ZUNvbnNv bGVXKGNvbm91dCwgcywgd2NzbGVuKHMpLCAmbGVuLCAwKTsKCiAgd2NoYXJfdCBidWZbOTld OwogIEhBTkRMRSBjb25pbiA9IEdldFN0ZEhhbmRsZShTVERfSU5QVVRfSEFORExFKTsKICBS ZWFkQ29uc29sZVcoY29uaW4sIGJ1ZiwgOSwgJmxlbiwgMCk7CiAgYnVmW2xlbl0gPSAwOwog IERXT1JEIGxlbjE7CiAgV3JpdGVDb25zb2xlVyhjb25vdXQsIGJ1ZiwgbGVuLCAmbGVuMSwg MCk7Cn0K --------------870A854EA3986788D449D0D1 Content-Type: text/plain; charset=UTF-8; name="sgr.java" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="sgr.java" aW1wb3J0IGphdmEuaW8uKjsKCnB1YmxpYyBjbGFzcyBzZ3IgewogICAgc3RhdGljIHB1Ymxp YyB2b2lkIG1haW4oU3RyaW5nW10gYXJncykgewogICAgICAgIFN5c3RlbS5vdXQucHJpbnRs bigiYWIbWzQxbUNEG1ttZWYiKTsKICAgIH0KfQo= --------------870A854EA3986788D449D0D1--