X-Recipient: archive-cygwin@delorie.com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:subject:to:references:from:message-id:date
	:mime-version:in-reply-to:content-type
	:content-transfer-encoding; q=dns; s=default; b=Sh9TxVnG6E6FMK7v
	ZGcVRv9ZBWluZHAlpDSQ/I9oCAyNj2QmE2ZwoNVQrzBsmDbivmI6sFVu/NA3tXCX
	HxCPuEMTBCt36tG3Jfy8MkTXuJE0jMFxgv+YwiGoUeL92XTbk8yaIxQsbb3M2sGh
	9rNc2myb/3+6Wm8PBkTq/FzCD4E=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:subject:to:references:from:message-id:date
	:mime-version:in-reply-to:content-type
	:content-transfer-encoding; s=default; bh=qJ0vag2d8WR33vrR+I8LMF
	QM9Cs=; b=plFn7IO64joOCJyyWnODqXHLAu0lvljj+PT1aNH+BnFp0byLr1k6X2
	391wmToTWHiCfZREemKOhRb6r4Zc5JkMHuLyF6O/oKXhk8Wx7PVG6urm44Hckg1x
	H31OAsw/tiKSzIPMlEG5FGLRLuvuD7Ql6GU8wO0MfiHrVypSAnO34=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=1.8 required=5.0 tests=AWL,BAYES_50,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_NONE autolearn=no version=3.3.2 spammy=feeds, disciplines, alike, Hx-languages-length:2398
X-HELO: mout.kundenserver.de
Subject: Re: [ANNOUNCEMENT] Updated: dash-0.5.8-3
To: cygwin@cygwin.com
References: <d58b09904f6fc607e5c044e67a02f393@smtp-cloud3.xs4all.net> <58893f48.0850ca0a.6c5d.5fde@mx.google.com> <81b5af354b7a3925ff0a68dcc063265f@smtp-cloud6.xs4all.net> <20170131100402.GB29504@calimero.vinschen.de> <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>
From: Thomas Wolff <towo@towo.net>
Message-ID: <59ecea04-2e3c-41af-9f4a-93a9b772a9e4@towo.net>
Date: Wed, 15 Feb 2017 23:19:01 +0100
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: <4bc220da-11d0-fd39-4691-27c6ec9cbbb8@towo.net>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
X-UI-Out-Filterresults: notjunk:1;V01:K0:8RsHL1d/b48=:EajodbpGILdNaOB2PEsRWc ZZkWImCr+vuMEJ1prgiTnavRdfr407FLQJ6CJdeSUYwufOXqeQoq3p8UP4glGFlv3QCt+T8nY ty3XpkMRDoAc9ZJpd/I5QMbZLAjn3FSuza0Op7L95pdYknQhv9CVNxl92JxFtQ1hPGGREWEk1 Z3Hrj70tHgY1jHWJMqVbs+f/EVCZQRmvKV0Vjhh3wbepItdZzo9j1vbbobHwlya1lE7aC3i3O pIpX+OenvBYm+Aix+1NbbFbY6oRR5AewHoG5F7Y2BSmAarISa68+G3lsUtYFT0J9VVN+eVoux W9vko6OMh7vQ0HfmvfF/VAbLlmhGOzq4bt4k6Pwe2M2Rl9Mb8YHQkwBQIZ38E06mvxxY31Esp dWcqfVGs2CtLwfiYQGthH0oxaqEHrJ5CUaSsg1UEClLuTDRlvOk5qOaRa/qOkuxYOdtKmi8TN uiXZL47ZExt47cKEJ265xniRG+SYh+o6NLEDR8v9vMxoqCBXw0ct7eVT5mlqVTgkz7HiTbPbW y1AtwZkgSoN3KKfp15UzB2yJpHlizFartxjCoOgpfX6Es14O6O1T9bj88sp1g7l3pPLU1mUwt Qp54ouVg5ShJq2li1A2GDfGQkOzL9vE//60bVJ/bw33Wat4jmc0aOLu6moqUGfNFe60eBvdQb tbZ7RVL1op4ZZ1izq335gE8xc9MBe4NKEb2ii4ZO+3HEPbNRaZfkOz3SQ93QNgyXh1/f0mEfm yP6nkECBmHz/oc3F
X-IsSubscribed: yes

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

