delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2017/02/17/02:36:35

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=RWa0VUrDeJY+sX1b
uWyEX5FEU3RFtAHtoal0SZsqeyKjkmA3kZLWRtsitqXqYvWY9oCsw+rU490YtcVm
JYsvf1A9ZRRWm+Hr6SHwHUiN3TAuccl1ugZ4v+nJwJlNVczjCfrnl3oTVnxqACUE
22l2Bioqivcsvn/AgGZyfM0IJdw=
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=wuyRerMtecWGyOJH5MjNHJ
8iAIk=; b=St9BnhTSSe5bqbhPG6M5UgxqwBxkSDpoR0R9Vu7eZdWKlQ2E+IswTQ
jw8WGULu4zI2VsR+jz2ep16k9FAmVbtW9US8A0+IOJjEy6CJkc0hBowI44JZnnPx
vLQJ86oCBJKFgDSmgTUAhgzb3WAE+vxKKasmPvwCnMslFx6hYlEPo=
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.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
Subject: Re: [ANNOUNCEMENT] Updated: dash-0.5.8-3
To: cygwin AT cygwin DOT com
References: <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> <4bc220da-11d0-fd39-4691-27c6ec9cbbb8 AT towo DOT net> <59ecea04-2e3c-41af-9f4a-93a9b772a9e4 AT towo DOT net> <20170216124949 DOT GF3889 AT calimero DOT vinschen DOT de> <bb2239bd-8cc3-2992-1554-18a04736ace7 AT towo DOT net>
From: Thomas Wolff <towo AT towo DOT net>
Message-ID: <58A6A7E0.8070500@towo.net>
Date: Fri, 17 Feb 2017 08:36:00 +0100
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: <bb2239bd-8cc3-2992-1554-18a04736ace7@towo.net>
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-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id v1H7aY2Q026495

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üft.
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


- Raw text -


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