* pseudo console and auto-wrap
@ 2020-03-05 13:04 Thomas Wolff
2020-03-06 12:55 ` Takashi Yano
0 siblings, 1 reply; 5+ messages in thread
From: Thomas Wolff @ 2020-03-05 13:04 UTC (permalink / raw)
To: cygwin
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?
Thomas
--
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: pseudo console and auto-wrap
2020-03-05 13:04 pseudo console and auto-wrap Thomas Wolff
@ 2020-03-06 12:55 ` Takashi Yano
2020-03-06 20:41 ` Bill Stewart
2020-04-01 21:55 ` Thomas Wolff
0 siblings, 2 replies; 5+ messages in thread
From: Takashi Yano @ 2020-03-06 12:55 UTC (permalink / raw)
To: cygwin
Hi Thomas,
On Thu, 5 Mar 2020 11:33:33 +0100
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.
--
Takashi Yano <takashi.yano@nifty.ne.jp>
--
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: pseudo console and auto-wrap
2020-03-06 12:55 ` Takashi Yano
@ 2020-03-06 20:41 ` Bill Stewart
[not found] ` <aaf835fc-8b8b-f67d-ec42-79b39d0026ef@towo.net>
2020-04-01 21:55 ` Thomas Wolff
1 sibling, 1 reply; 5+ messages in thread
From: Bill Stewart @ 2020-03-06 20:41 UTC (permalink / raw)
To: cygwin
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: pseudo console and auto-wrap
2020-03-06 12:55 ` Takashi Yano
2020-03-06 20:41 ` Bill Stewart
@ 2020-04-01 21:55 ` Thomas Wolff
1 sibling, 0 replies; 5+ messages in thread
From: Thomas Wolff @ 2020-04-01 21:55 UTC (permalink / raw)
To: cygwin
Am 05.03.2020 um 16:51 schrieb Takashi Yano:
> Hi Thomas,
>
> On Thu, 5 Mar 2020 11:33:33 +0100
> 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.
>
https://github.com/microsoft/terminal/pull/5181 seems to intend to fix it.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2020-04-01 21:55 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-05 13:04 pseudo console and auto-wrap Thomas Wolff
2020-03-06 12:55 ` Takashi Yano
2020-03-06 20:41 ` Bill Stewart
[not found] ` <aaf835fc-8b8b-f67d-ec42-79b39d0026ef@towo.net>
2020-03-10 20:36 ` Brian Inglis
2020-04-01 21:55 ` Thomas Wolff
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).