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:mime-version:references:in-reply-to:from:date :message-id:subject:to:content-type; q=dns; s=default; b=x/5tXtq P0UaI9BemtskVfOEg3IMl1rI0h1C5C8VZZPFs0897jHAcmMB5QOn9WcDSguNPbL/ Dyhx8NtOer5JAxlr2Byb7nSYO76oIaf/oRQjqcSWKeBD32nVH4qAQQHb7jlGOdtK avYO7c11Vw5Tk/RV/9B1AfuFpGNRc1eMzXPs= 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:mime-version:references:in-reply-to:from:date :message-id:subject:to:content-type; s=default; bh=nTVUUIAPqJn3H KNvw4mcUUhGDCg=; b=p4SN4dd7SdPFuUjlt1sWmkXrpETkHeNXdGp5RRfFcnw9a TajhYgG8lUDGeaWlZLxrwxjTnoEOnERsrn8LB2BwkNpAj9M0oLLW2a3oRdwFip9c 2OF9gBrjruvn0hlgNVSO2GIGnuu7EbvpllgSyQs+0syqWe4gJ5zvC+GNMh3m+U= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , 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-Spam-SWARE-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.1 spammy=services X-HELO: mout.gmx.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=mail.com; s=dbd5af2cbaf7; t=1583520375; bh=I1d9QFGteFhPn3/eZ7VqF3/yk06fQmafQ3pviK6bbBc=; h=X-UI-Sender-Class:References:In-Reply-To:From:Date:Subject:To; b=dwD5yAFQvHDAjnbJ1KLcA7YfbQZhVkOVPEZ1xnhdhBGMKPlF7GVVD+CtGeill6zni 5gU9lWU/f5ictzGeisc6M796iycPzphq4iR6HQjpoJImtjs10OlZ9FxaqS6penySXw Bn9CtsQKdQ1XPF6JrgvvslzoMt70RNpKRup4wVEM= X-UI-Sender-Class: 214d933f-fd2f-45c7-a636-f5d79ae31a79 MIME-Version: 1.0 References: <0c9fd8af-bb5a-0d15-5a5a-3fc739d3e6cd AT towo DOT net> <20200306005122 DOT 52a9b50615a16546e60defc1 AT nifty DOT ne DOT jp> In-Reply-To: <20200306005122.52a9b50615a16546e60defc1@nifty.ne.jp> From: Bill Stewart Date: Fri, 6 Mar 2020 11:45:45 -0700 Message-ID: Subject: Re: pseudo console and auto-wrap To: cygwin AT cygwin DOT com Content-Type: text/plain; charset="UTF-8" X-IsSubscribed: yes 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? Thanks, Bill -- 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