Skip to content

Copying from ssh->tmux->Ctrl-B+[ leads to many trailing spaces in some lines #18895

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

Open
vadimkantorov opened this issue May 12, 2025 · 3 comments
Labels
Issue-Bug It either shouldn't be doing this or needs an investigation. Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting

Comments

@vadimkantorov
Copy link

Windows Terminal version

1.22.11141.0

Windows build number

10.0.22631.5189

Other Software

No response

Steps to reproduce

When copying some printouts from tmux, there are a lot of trailing spaces, and sometimes missing newline chars

vllm-project/vllm#16859 (comment)

E.g. here I had to manually insert newlines (but still kept the trailing spaces for bug demonstration purposes)

Expected Behavior

No trailing spaces, and newline chars preserved when copy-pasting output in tmux

Actual Behavior

trailing spaces and missing newline chars

@vadimkantorov vadimkantorov added Issue-Bug It either shouldn't be doing this or needs an investigation. Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting labels May 12, 2025
Copy link

We've found some similar issues:

If any of the above are duplicates, please consider closing this issue out and adding additional context in the original issue.

Note: You can give me feedback by 👍 or 👎 this comment.

@vadimkantorov
Copy link
Author

vadimkantorov commented May 12, 2025

For newlines, this might be duplicate of #8976 - it's a pity, this this issue still bites after so many years :(

For trailing spaces, the problem here is that I'm not doing rectangular selection specifically as in #9706, but just some arbitrary text selection

@vadimkantorov vadimkantorov changed the title Copying from ssh->tmux leads to many trailing spaces in every line, and sometimes no newlines copied Copying from ssh->tmux->Ctrl-B+[ leads to many trailing spaces in every line, and sometimes no newlines copied May 12, 2025
@DHowett
Copy link
Member

DHowett commented May 12, 2025

Since this bug contains what appears to be two issues, I'm going to make this one the primary for the spaces issue.

If you can reproduce the spaces issue under the debug tap, would you be willing to share the output... or some repro steps/? Thanks.

@microsoft-github-policy-service microsoft-github-policy-service bot added the Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something label May 12, 2025
@DHowett DHowett changed the title Copying from ssh->tmux->Ctrl-B+[ leads to many trailing spaces in every line, and sometimes no newlines copied Copying from ssh->tmux->Ctrl-B+[ leads to many trailing spaces in some lines May 12, 2025
@vadimkantorov vadimkantorov changed the title Copying from ssh->tmux->Ctrl-B+[ leads to many trailing spaces in some lines Copying from ssh->tmux->Ctrl-B+[ leads to many trailing spaces in some lines and missing newline chars May 12, 2025
@vadimkantorov vadimkantorov changed the title Copying from ssh->tmux->Ctrl-B+[ leads to many trailing spaces in some lines and missing newline chars Copying from ssh->tmux->Ctrl-B+[ leads to many trailing spaces in some lines May 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue-Bug It either shouldn't be doing this or needs an investigation. Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting
Projects
None yet
Development

No branches or pull requests

2 participants