From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 83614 invoked by alias); 17 Feb 2017 07:36:19 -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 83600 invoked by uid 89); 17 Feb 2017 07:36:18 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=0.9 required=5.0 tests=AWL,BAYES_00,FOREIGN_BODY,GIT_PATCH_2,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_NONE,RCVD_IN_SORBS_SPAM autolearn=no version=3.3.2 spammy=diese, H*f:sk:bb2239b, sk:antivir, H*i:sk:bb2239b X-HELO: mout.kundenserver.de Received: from mout.kundenserver.de (HELO mout.kundenserver.de) (212.227.17.13) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 17 Feb 2017 07:36:07 +0000 Received: from [192.168.178.35] ([95.91.213.111]) by mrelayeu.kundenserver.de (mreue102 [212.227.15.183]) with ESMTPSA (Nemesis) id 0Lzs5j-1cIGXe17ad-015203 for ; Fri, 17 Feb 2017 08:36:05 +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: <58A6A7E0.8070500@towo.net> Date: Fri, 17 Feb 2017 07:36:00 -0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable X-UI-Out-Filterresults: notjunk:1;V01:K0:A3ftD3ktrp8=:yUlKwtv4DwHTsrwzsr6Jrv S4zNYKe4HhPyHvMH+C3V+it2pASEtnBtwG6SQTVoMNL8hZdSyQJ3nPYQUriD+gI+GSvimPMcL 2HQW+Pgt32ytSjZV9XcBnbmUQhAaHV/oa7fpGnoZPspapEeO/n6BSzYMtPJx9nPJN3Q8KB/dv Bm69xjTF8Y6dEYZtxUKnh2bBl4BIeoX1p7imQ0QkFDGiPJR0MkYbzRPBA9Sx+MzeZyoVmD06G az5J1FNK9clUpUrPyH8tk5X7ZLaoTBokEaHZW9tPNRw3pUzar0n4OsLOl9SNtZRXe6XpS0bwY PfviGKRT/eo/BheReniLeXQ4DDRF2+qlmdbxITpY20jdsoZ+Q7GtvWRKAPPs0FXGNwXQpBGWH 9/816p70e7Wl1TTGEbr8CmvfkQVcU9ouL7KPIsrA44I8AdBPvX6fqW13CxFkK6iCHRz3LI6Fx mrZTwZopBHp6W22Hfeu90bUiPrA6ZUEujGoaxw/ztcKUQs39u4Ln1TnWZKOiDN18OYBU0qGZY RTJHwVzAva+W8YITQfYHJIhxJcmaRzuisB+zohmbhMjOcNF+ij3efYtQ43qsiroE7BmAecWKB d4t08grw3reTkxzZAipLK5hLzRCrF86N/MiorNy2S2MiojuCLarG/7p4MZKCFDDL0PnQTDgAf SwmoKw7qRT4T4J/QmFGmSujiUOcDrDC2zItXTmDFyHUxzNJxUBCI+JzKnmUlgfC/USJk2h8JF QRGgIJWqkaUgBhDy X-IsSubscribed: yes X-SW-Source: 2017-02/txt/msg00215.txt.bz2 Am 16.02.2017 um 21:32 schrieb Thomas Wolff: > 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. Now tested on 2 Windows 7 systems and 2 Windows 10 systems. Does not work on Windows 10. Any idea? ------ Thomas --- Diese E-Mail wurde von Avast Antivirus-Software auf Viren gepr=C3=BCft. https://www.avast.com/antivirus -- 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