delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2017/02/14/15:35:34

X-Recipient: archive-cygwin AT delorie DOT 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=vw1e+xNvlbHwyXWZ
VnvNg5fI/Sbj5MGZS1dwHJsrjLlsBAJHUPfim+vpCDtW2Wn45QTJKivWw0q4hElE
z0hEJDjrcblYI6GqVvpJN6YeQUb/gc95VSfdTEHD5h3DU6hPyFp87Q8s4jQPkaPo
oCzctBv7Z4Fp0URCB/nUv8PDMcw=
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=yxc8IdS3Qa56FQbCOUSHTK
cmWHA=; b=NKHKObcxyg52qT/Cke8Jr+GQMh/DWUjhXh/3k2oJ9TQVSbNOg6MNWq
uBJ7B39rf1t+YSwch0Dq92F4z/KQ2IYskTjMktDp1RnQcZoVko401MgHhFT60Pjp
CwrHXRG7OtytyuK8TGFKw+rmBdD07ojHesRFbbRHhtbZxYUOzk7Yg=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-0.6 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_NONE autolearn=no version=3.3.2 spammy=Hx-languages-length:2115, feeds, Hx-spam-relays-external:sk:mrelaye, H*RU:sk:mrelaye
X-HELO: mout.kundenserver.de
Subject: Re: [ANNOUNCEMENT] Updated: dash-0.5.8-3
To: cygwin AT cygwin DOT com
References: <d58b09904f6fc607e5c044e67a02f393 AT smtp-cloud3 DOT xs4all DOT net> <58893f48 DOT 0850ca0a DOT 6c5d DOT 5fde AT mx DOT google DOT com> <81b5af354b7a3925ff0a68dcc063265f AT smtp-cloud6 DOT xs4all DOT net> <20170131100402 DOT GB29504 AT calimero DOT vinschen DOT de> <20170131131616 DOT GC29504 AT calimero DOT vinschen DOT de> <40c92f1e987a9162742766816abb4a03 AT smtp-cloud2 DOT xs4all DOT net> <20170131153245 DOT GA8905 AT calimero DOT vinschen DOT de> <09c7b42a-7b8d-52b7-ce18-4e681eb51f05 AT towo DOT net> <20170214084537 DOT GD25846 AT calimero DOT vinschen DOT de> <09253e2d-af27-ddca-2b49-b65460440f69 AT towo DOT net> <6488d88d-f6b8-674d-692c-8372977a4707 AT redhat DOT com> <0da58793-0b76-1f13-aca3-06ed6aa83dc3 AT towo DOT net>
From: Thomas Wolff <towo AT towo DOT net>
Message-ID: <4bc220da-11d0-fd39-4691-27c6ec9cbbb8@towo.net>
Date: Tue, 14 Feb 2017 21:35:18 +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: <0da58793-0b76-1f13-aca3-06ed6aa83dc3@towo.net>
X-UI-Out-Filterresults: notjunk:1;V01:K0:HYdsIq6tyMM=:H5ylHQOGueHAINEKPUxnaF 0flgVWL0xk0+/tm3PnzMyqtcW43Q2FO/3lmCAyOnyxKJhwzUcqG4QcEvLcGfzr3ZYRmwMQb17 cYk4U/V5kAhL448gzXjmhxTK/YIYNvbnGsMbTBE6wnu4WYFljRcIPFdNpyQYvxQEd0l/4npfz 7NQlH375lFwbZR+5AHHCWdPkvOJlSJ2FUepLLgWF9BaGO8W29LAkJBGuUb9UzhRIbZxCsIcUq idi4i45u1U0lrqjqu0P5puFmavNofc4KKvI4DvfKePOXrstFahyF4MMhFdaPCRwZIzecQhnBG TI/QqyfryxiQDE8D6WhkXhx34kNC2z9pvq7L3KS54pg0+hDEWeMHzP47yYl6zLi3kTjpEcbJk ZeB+dlhtLnyDDOCFzbDW7ep8zM/LfWMGBO+92zU49oTno/ptv1aWUTot+9PixUQaVxirb8OXa h+C6gO8sVFQEES7uKCH3d1v5WcxdPGJi/TjaOwaeZd1htZa+spgCnJQTpvmIiyRtL7rKK++v+ Byb94ZWBcEhB0Qe1mVoWSegemRdZFx06VYkYGYoENMVAKuu91jBp8HbGDC2wS1ImmSmLM12E/ 5KTd5OfOhGMlxM4YO8Zp16+Nc7V/g6k0h3mYfCOoQZZpleQZZTA3fmx7IDEz+h80pVV2chKJj Ga0gZOf6bY6F9stJlymqpnwp1pD1eAQX6GuS0S1Tw2gt/+JwngSMAfBWcxm8n1ZFT4zcvYPYF CfZTrfEnnUNH9bbp
X-IsSubscribed: yes

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. I've uploaded that to the git 
repository.
------
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019