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=EeMjwCkCCEhp5HxC
	Hzfp3QXvSi4K7SYIsa2WWY4zTIifmaYtjhyIuSc+4vB35M40bWoU0tebucTkM6KD
	eJc0zdpV5VSYITvR2qwUktDpnPRwEEMpg6BAxVjUiS3EhNRYc9TtFAM7rYQirXH5
	2h6YMkMtJVTB81NTz13tbqIKlkM=
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=TWyptQA8Jazy7uku3+Qjyn
	y+uzw=; b=EoXsXUNzPsTG3F8QItWOhF3UathPj2nurgnBQ5V23JnYltmp2XuHLk
	l/JPxGC/KziW44CuC75DiNklF52YtQdNVQSeNgrHHssQ132NeTF/uwaxLc+Bv+fP
	j+asF0KloHlvsgPMlQJJAQNpW1iWBHPfprGvoz8JxK+Oxjmbo0sH0=
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-Spam-SWARE-Status: No, score=-5.5 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 spammy=H*i:sk:RVqXc47, stewart, H*f:CANV9t, Stewart
X-HELO: mout.kundenserver.de
Subject: Re: pseudo console and auto-wrap
To: cygwin@cygwin.com
References: <0c9fd8af-bb5a-0d15-5a5a-3fc739d3e6cd@towo.net> <20200306005122.52a9b50615a16546e60defc1@nifty.ne.jp> <CANV9t=RVqXc47uzCb0GUiZKxAx-tGHxD5qM2adv7bnZ486tWsA@mail.gmail.com>
From: Thomas Wolff <towo@towo.net>
X-Tagtoolbar-Keys: D20200306214329768
Message-ID: <aaf835fc-8b8b-f67d-ec42-79b39d0026ef@towo.net>
Date: Fri, 6 Mar 2020 21:43:29 +0100
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.5.0
MIME-Version: 1.0
In-Reply-To: <CANV9t=RVqXc47uzCb0GUiZKxAx-tGHxD5qM2adv7bnZ486tWsA@mail.gmail.com>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes



Am 06.03.2020 um 19:45 schrieb Bill Stewart:
> On Thu, Mar 5, 2020 at 8:52 AM Takashi Yano wrote:
>
>> Thomas Wolff wrote:
>>> With ConPTY support, the following command results in output that
>>> contains an explicit newline at the auto-wrap position:
>>> cmd /c echo a line which is wider than your terminal ...
>>>
>>> For copy/paste, this is surprising and undesired
>>> (https://github.com/mintty/mintty/issues/971).
>>> Can the line wrapping case be handled specifically, assuming proper
>>> auto-wrap mode on the terminal side, to avoid this?
>> This is internal behaviour of pseudo console.
>> So we can not touch it. WSL also behaves the same.
> Observations when I ssh to a Windows 10 1909 machine running cygwin
> 3.1.4/OpenSSH 8.2...
>
> I ran ssh-host-config and tested both with disable_pcon set in CYGWIN
> environment variable and without. (This sets REG_SZ value
> HKLM\SYSTEM\CurrentControlSet\Services\cygsshd\Parameters\Environment\CYGWIN=disable_pcon)
>
> With disable_pcon set:
>
> echo "$PATH"     -- wraps correctly
> cmd /c echo %PATH%     -- wraps correctly
> winpty cmd /c echo %PATH%     -- wrapping broken
>
> Without disable_pcon set:
>
> echo "$PATH"     -- wraps correctly
> cmd /c echo %PATH%  -- wrapping broken
> winpty cmd /c echo %PATH%     -- wrapping broken
>
> I would note that in both cases, winpty output is not correct.
>
> Does anyone have any ideas on how to fix it?
Note that winpty is obsolete under current cygwin, and the second cmd 
case is the only issue.
As Takashi explained, there is no fix on the cygwin side. It could be 
fixed on the Windows side, within the ConPTY API.
You could report it there...

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

