From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 33125 invoked by alias); 6 Mar 2020 18:46:19 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 33106 invoked by uid 89); 6 Mar 2020 18:46:18 -0000 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 Received: from mout.gmx.com (HELO mout.gmx.com) (74.208.4.200) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 06 Mar 2020 18:46:17 +0000 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 Received: from mail-lj1-f181.google.com ([209.85.208.181]) by mail.gmx.com (mrgmxus003 [74.208.5.15]) with ESMTPSA (Nemesis) id 0LqjEy-1jnBEi2tW6-00eJ9c for ; Fri, 06 Mar 2020 19:46:14 +0100 Received: by mail-lj1-f181.google.com with SMTP id f13so3301532ljp.0 for ; Fri, 06 Mar 2020 10:46:14 -0800 (PST) MIME-Version: 1.0 References: <0c9fd8af-bb5a-0d15-5a5a-3fc739d3e6cd@towo.net> <20200306005122.52a9b50615a16546e60defc1@nifty.ne.jp> In-Reply-To: <20200306005122.52a9b50615a16546e60defc1@nifty.ne.jp> From: Bill Stewart Date: Fri, 06 Mar 2020 20:41:00 -0000 Message-ID: Subject: Re: pseudo console and auto-wrap To: cygwin@cygwin.com Content-Type: text/plain; charset="UTF-8" X-IsSubscribed: yes X-SW-Source: 2020-03/txt/msg00097.txt 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