pseudo console and auto-wrap

Bill Stewart bstewart@iname.com
Fri Mar 6 20:41:00 GMT 2020


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



More information about the Cygwin mailing list