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

Closed
opened 2026-01-31 08:36:47 +00:00 by claunia · 5 comments
Owner

Originally created by @vadimkantorov on GitHub (May 12, 2025).

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

https://github.com/vllm-project/vllm/pull/16859#issuecomment-2872065826

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

Originally created by @vadimkantorov on GitHub (May 12, 2025). ### 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 https://github.com/vllm-project/vllm/pull/16859#issuecomment-2872065826 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
claunia added the Needs-TriageIssue-BugNeeds-Author-FeedbackNo-Recent-Activity labels 2026-01-31 08:36:47 +00:00
Author
Owner

@similar-issues-ai[bot] commented on GitHub (May 12, 2025):

We've found some similar issues:

  • #13898 , similarity score: 82%
  • #8532 , similarity score: 82%
  • #9706 , similarity score: 81%

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.

@similar-issues-ai[bot] commented on GitHub (May 12, 2025): We've found some similar issues: - #13898 , similarity score: 82% - #8532 , similarity score: 82% - #9706 , similarity score: 81% 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.
Author
Owner

@vadimkantorov commented on GitHub (May 12, 2025):

For newlines, this might be duplicate of https://github.com/microsoft/terminal/issues/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 https://github.com/microsoft/terminal/issues/9706, but just some arbitrary text selection

@vadimkantorov commented on GitHub (May 12, 2025): For newlines, this might be duplicate of https://github.com/microsoft/terminal/issues/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 https://github.com/microsoft/terminal/issues/9706, but just some arbitrary text selection
Author
Owner

@DHowett commented on GitHub (May 13, 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.

@DHowett commented on GitHub (May 13, 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](https://github.com/microsoft/terminal/wiki/Troubleshooting-Tips#enabling-the-debug-tap), would you be willing to share the output... or some repro steps/? Thanks.
Author
Owner

@vadimkantorov commented on GitHub (May 17, 2025):

I will try, but it may take some days to catch it again

@vadimkantorov commented on GitHub (May 17, 2025): I will try, but it may take some days to catch it again
Author
Owner

@microsoft-github-policy-service[bot] commented on GitHub (Jun 22, 2025):

This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment.

@microsoft-github-policy-service[bot] commented on GitHub (Jun 22, 2025): This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for **4 days**. It will be closed if no further activity occurs **within 3 days of this comment**. <!-- Policy app identification https://img.shields.io/static/v1?label=PullRequestIssueManagement. -->
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#23253