public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Long lines output by a native process in the PTY have new lines at the wrap point in the terminal
@ 2020-06-29 13:52 Andrew Ng
  2020-06-29 14:02 ` Thomas Wolff
  0 siblings, 1 reply; 2+ messages in thread
From: Andrew Ng @ 2020-06-29 13:52 UTC (permalink / raw)
  To: cygwin

Hi,

If you run a native process in bash using mintty that outputs lines
longer than the width of the terminal, these lines become "split" with
a new line at the wrap point. This can make copying the output
somewhat tricky, especially if the output is a command line you want
to copy, paste and run.

Can be reproduced using GnuWin32 'echo' or a native version of Python
using print.

I am running Cygwin 3.1.5 and mintty 3.2.0.

Thank you,
Andrew Ng

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Long lines output by a native process in the PTY have new lines at the wrap point in the terminal
  2020-06-29 13:52 Long lines output by a native process in the PTY have new lines at the wrap point in the terminal Andrew Ng
@ 2020-06-29 14:02 ` Thomas Wolff
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Wolff @ 2020-06-29 14:02 UTC (permalink / raw)
  To: cygwin

Am 29.06.2020 um 15:52 schrieb Andrew Ng via Cygwin:
> Hi,
>
> If you run a native process in bash using mintty that outputs lines
> longer than the width of the terminal, these lines become "split" with
> a new line at the wrap point. This can make copying the output
> somewhat tricky, especially if the output is a command line you want
> to copy, paste and run.
>
> Can be reproduced using GnuWin32 'echo' or a native version of Python
> using print.
This has been discussed as a mintty issue 
https://github.com/mintty/mintty/issues/971
It's actually a Windows ConPTY handling issue and reportedly they have a 
fix already in their queue, to appear in some future Windows build...
Thomas

> I am running Cygwin 3.1.5 and mintty 3.2.0.
>
> Thank you,
> Andrew Ng
> --
> Problem reports:      https://cygwin.com/problems.html
> FAQ:                  https://cygwin.com/faq/
> Documentation:        https://cygwin.com/docs.html
> Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-06-29 14:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-29 13:52 Long lines output by a native process in the PTY have new lines at the wrap point in the terminal Andrew Ng
2020-06-29 14:02 ` 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).