From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15430 invoked by alias); 16 Feb 2017 12:49:58 -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 15413 invoked by uid 89); 16 Feb 2017 12:49:55 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-101.6 required=5.0 tests=BAYES_00,GOOD_FROM_CORINNA_CYGWIN,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=feeds, disciplines, alike, H*f:sk:6488d88 X-HELO: drew.franken.de Received: from mail-n.franken.de (HELO drew.franken.de) (193.175.24.27) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 16 Feb 2017 12:49:53 +0000 Received: from aqua.hirmke.de (business-24-134-7-25.pool2.vodafone-ip.de [24.134.7.25]) (Authenticated sender: aquarius) by mail-n.franken.de (Postfix) with ESMTPSA id 2D4CC721E280C for ; Thu, 16 Feb 2017 13:49:51 +0100 (CET) Received: from calimero.vinschen.de (calimero.vinschen.de [192.168.129.6]) by aqua.hirmke.de (Postfix) with ESMTP id 0FBA45E049E for ; Thu, 16 Feb 2017 13:49:50 +0100 (CET) Received: by calimero.vinschen.de (Postfix, from userid 500) id E1E8DA8068A; Thu, 16 Feb 2017 13:49:49 +0100 (CET) Date: Thu, 16 Feb 2017 12:49:00 -0000 From: Corinna Vinschen To: cygwin@cygwin.com Subject: Re: [ANNOUNCEMENT] Updated: dash-0.5.8-3 Message-ID: <20170216124949.GF3889@calimero.vinschen.de> Reply-To: cygwin@cygwin.com Mail-Followup-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> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="ep0oHQY+/Gbo/zt0" Content-Disposition: inline In-Reply-To: <59ecea04-2e3c-41af-9f4a-93a9b772a9e4@towo.net> User-Agent: Mutt/1.7.1 (2016-10-04) X-SW-Source: 2017-02/txt/msg00208.txt.bz2 --ep0oHQY+/Gbo/zt0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-length: 2875 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 implici= tly, > > > > > 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 ma= ster > > > > > 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 n= or > > > > dash need to reference it, because if the tty handling code sets it > > > > correctly for what the terminal is going to display, then the clien= ts > > > > that are read()ing from the tty never even see BS in cooked mode (t= he > > > > 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 eith= er > 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 or is there something more sophisticated? Thanks, Corinna --=20 Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat --ep0oHQY+/Gbo/zt0 Content-Type: application/pgp-signature; name="signature.asc" Content-length: 819 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJYpZ/tAAoJEPU2Bp2uRE+g25UP/1X6HhdQqJRDOYBJCiKgz8fR nPixY+0Dg+W5v0UA22OypGyjeSMODbVwk0EFOQeFQr0tqwFbwWZT8t+Gskt/+IRd QOtR8D2PJ8KjXZwerc7om+Hkufp0YTVVz5lnWmDGegD0+yAYKvkdcz+Chln5kR5b qXt9+1/7w4tj75tWEg+KNC/DviLoIRRaFCSvsrZUe3IV7+SlZDrqWU0N03wYq9jb KxHIZTeCrTaX6+riqpAhqC7hzqgTastuqtzFThX9ePDvIXuTl3waH0FbDyj2Obqq AXZv1kxRfkV8yxwyQDuKxpWRExhAzILZx5feZFlFOD0kL47WbrS/wZKDip76j13b AGwPEvVvwtwUcLZC64ahHoqJD4Zvfvo//pBHpzOF872m8BywBmR+lMTRGGXuVsNE odONA7P/uZoNnv8HlnZb3EwY36AuXu1NFwOsShAsheXACmbM6dGe3S3U0aWzlJUZ Au204Z1eELol6NRDFiC805q9Xlbo70RglHBr9D3fBau5JpzFnaoYLej2aG9HqzUW APRG41JWrmOqRQC34Q29JE85qTkP32UkZhyAC3fK/3xCLajnybxNTMbJN4wS8YsU OT355E0e/ahHer8DckvPliESYgYHHURBA29ALVk9Q+iUsu52sk2IxojJOsSlOTFs bbsA/RPkdJK9uw50Kb5t =MBVs -----END PGP SIGNATURE----- --ep0oHQY+/Gbo/zt0--