Open aminya opened 3 years ago
I think this will have to be fixed in xterm.
Can you check if this also happens with one of the other terminal packages that you maintain?
Yes it happens in x-terminal and terminus (the only two I tried).
This looks like a powershell/bash issue.
The problem is that the process sends the text with a newline character when it wraps so there is no way of knowing whether the newline character was supposed to be there or not.
If the text printed to the terminal is long enough that its text is shown in the next line, and we copy the text from the terminal, the resulting copied text will have unwanted line breaks when pasted into the editor.
For example, the result of:
will be copied as: