Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Copied text includes unwanted line-breaks in long texts #73

Open
aminya opened this issue May 18, 2021 · 3 comments
Open

Copied text includes unwanted line-breaks in long texts #73

aminya opened this issue May 18, 2021 · 3 comments
Labels
bug Something isn't working wontfix This will not be worked on

Comments

@aminya
Copy link
Member

aminya commented May 18, 2021

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:

> echo sssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss

will be copied as:

sssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss 
ssssssssssssssssssssssssssssss
@aminya aminya added the bug Something isn't working label May 18, 2021
@UziTech
Copy link
Member

UziTech commented May 18, 2021

I think this will have to be fixed in xterm.

@aminya
Copy link
Member Author

aminya commented May 18, 2021

Can you check if this also happens with one of the other terminal packages that you maintain?

@UziTech
Copy link
Member

UziTech commented May 18, 2021

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.

@UziTech UziTech added the wontfix This will not be worked on label Jun 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants