From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 89830 invoked by alias); 16 Feb 2017 20:32:42 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 89811 invoked by uid 89); 16 Feb 2017 20:32:41 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-4.7 required=5.0 tests=AWL,BAYES_00,GIT_PATCH_2,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_NONE,RCVD_IN_SORBS_SPAM autolearn=ham version=3.3.2 spammy=adress, one, Hx-spam-relays-external:sk:mrelaye, H*RU:sk:mrelaye X-HELO: mout.kundenserver.de Received: from mout.kundenserver.de (HELO mout.kundenserver.de) (212.227.126.187) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 16 Feb 2017 20:32:31 +0000 Received: from [192.168.178.45] ([95.91.244.74]) by mrelayeu.kundenserver.de (mreue003 [212.227.15.167]) with ESMTPSA (Nemesis) id 0LyQ4I-1cH4OI1b5q-015rt2 for ; Thu, 16 Feb 2017 21:32:28 +0100 Subject: Re: [ANNOUNCEMENT] Updated: dash-0.5.8-3 To: cygwin@cygwin.com References: <20170131131616.GC29504@calimero.vinschen.de> <40c92f1e987a9162742766816abb4a03@smtp-cloud2.xs4all.net> <20170131153245.GA8905@calimero.vinschen.de> <09c7b42a-7b8d-52b7-ce18-4e681eb51f05@towo.net> <20170214084537.GD25846@calimero.vinschen.de> <09253e2d-af27-ddca-2b49-b65460440f69@towo.net> <6488d88d-f6b8-674d-692c-8372977a4707@redhat.com> <0da58793-0b76-1f13-aca3-06ed6aa83dc3@towo.net> <4bc220da-11d0-fd39-4691-27c6ec9cbbb8@towo.net> <59ecea04-2e3c-41af-9f4a-93a9b772a9e4@towo.net> <20170216124949.GF3889@calimero.vinschen.de> From: Thomas Wolff Message-ID: Date: Thu, 16 Feb 2017 20:32:00 -0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.7.1 MIME-Version: 1.0 In-Reply-To: <20170216124949.GF3889@calimero.vinschen.de> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-UI-Out-Filterresults: notjunk:1;V01:K0:KG+5BzXuONI=:3bi1UXSiPqBFhwzPPR6cUz 7O2RzCd7CMq8msitYcV/FFmbTVcLN+XTYQnP2wu1bKx4Ey/e+xKohm3FCyvPdm5fqyc8E6Z1r 6PFm3RsNWkn29g/gf4Y4sf+itHOwnIXUUG0w8Q2C+n1loU/hIZpPBQHgoi6HnLu/QLeXOb5lK A7NSInOQwesIEm+olX5jg2pWvxPtrF5Q/1S8AFxXdkeImfjcQauVqb7S4jq3lYD7f1GoVmURX h0yGw6YYhMcBJ1Txt4caHD1cBSRqKbkh24WQuIos5ppce2vD8JOulIc1K75ARycc3Mrt2lM4L QMP2L84KXbxFZgqGrTzVfZ9Z3B6XbAvC3ky5YLguYS8N07oobv0kun7JZoaHcOZzgmyEre1fy vfkpVQ1w6CFbVj2IN3vN4ZzHIoKINBgrHUPWCCWuXFWw8VCTuO0GsF1krsCRhR2HbHDpXiV3f YtuavUCoplF/4YUFv7JQQrtz3yFevFop2zRewbET1ADJde/AUXxkfuCEGvi52jOZjYCWJZXZd yQBoQmPiEk3kGTBqTihrIAiUbyNPbA5XHLc9PGbaT5wibQapEV3vrh1kMX8mYgLZH50lnqKPn qjJmwoeX7Fkqn0/idwHdTB0Q7p0OAn4ApTZ0FZwCHwC7AaE1D2XDOwcvr63Qnfjp/IFI+dY2C IwP6lVqsjU8ZYID/uEpz6wLB+pfG9N5+Ry5oeFD3ooCPHgayinvtT+hfiojpVWFUO/edT0e9i qWoIAm0soLehO7/5 X-IsSubscribed: yes X-SW-Source: 2017-02/txt/msg00211.txt.bz2 Am 16.02.2017 um 13:49 schrieb Corinna Vinschen: > On Feb 15 23:19, Thomas Wolff wrote: >> Am 14.02.2017 um 21:35 schrieb Thomas Wolff: >>> Am 14.02.2017 um 21:29 schrieb Thomas Wolff: >>>> Am 14.02.2017 um 20:56 schrieb Eric Blake: >>>>> On 02/14/2017 01:40 PM, Thomas Wolff wrote: >>>>>>> No. We're talking about a function in the master side >>>>>>> of the tty, while >>>>>>> the applications started in the terminal are on the slave side. >>>>>> I am not familiar with the concept of setting termios properties on >>>>>> either the master or slave side of a pty. I've only ever set >>>>>> them in the >>>>>> client application, including my tests about IUTF8 which worked. Would >>>>>> setting on the master side imply it's set for the clients implicitly, >>>>>> and can it be changed later, e.g. when mintty character encoding is >>>>>> being changed from the Options dialog? >>>>>> And you say the function of erasing characters on BS is in the master >>>>>> side? To be honest, this confuses me. I thought it's a >>>>>> client function, >>>>>> like readline() would perform if used (apparently not by >>>>>> dash), which is >>>>>> kind of an enhanced version of the tty cooked mode and used >>>>>> to work even >>>>>> without the new flag, right? >>>>> The readline source code does not mention IUTF8; and neither bash nor >>>>> dash need to reference it, because if the tty handling code sets it >>>>> correctly for what the terminal is going to display, then the clients >>>>> that are read()ing from the tty never even see BS in cooked mode (the >>>>> master side of the terminal handles BS before the read() completes in >>>>> the slave, if I'm understanding it correctly). >>>> This does not comply with my (limited) understanding of pty stuff. >>>> In mintty, forkpty will create a master/slave pty; mintty feeds it >>>> on the master side, while the client program (usually a shell) reads >>>> from the slave side. Mintty never handles BS for input, it simply >>>> feeds it into the pty. "Line disciplines" like cooked mode must be >>>> handled on the slave side. >>> Also, I've tried both options in mintty. Setting the flag on the master >>> side has weird effects, initially blocking the terminal process. >>> Setting it on the slave side works fine. >> That was a mistake (got something wrong when testing). It works from either >> side alike. >> I've now patched mintty to keep the flag in sync with the character >> encoding, including on later changes (from Options menu or by escape >> sequence). > There's an ESC sequence to change the codeset? Do you mean the > alternate codeset sequence \e[10m / \e[11m Oh, that one! Thanks for mentioning, I had overlooked it and fixed mintty now to consider it. > or is there something more sophisticated? I actually meant to adress https://github.com/mintty/mintty/wiki/CtrlSeqs#locale and there is also \e%G and \e%@. I just notice that later changing of the IUTF8 flag from the master side does not seem to work on a Window 10 system (although it works initially) while it does work on a Windows 7 system. Weird. ------ 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