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

Copying (Left-Drag, Right) in WSL gives 128 spaces instead of a blank line #18348

Open
vefatica opened this issue Dec 21, 2024 · 3 comments
Open
Labels
Needs-Tag-Fix Doesn't match tag requirements Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting

Comments

@vefatica
Copy link

Probably a dup; I couldn't find it.

WindowsTerminal 1.22.2411.18002 (preview)

If, in WT, I copy (Left-Drag, Right), as pictured,

Image

and paste into notepad, I get what's expected (no extra stuff).

Image

If I do the same in WSL

Image

and paste into notepad, I get (this is hard to picture)

Image

On the line immediately after the second "foo" there are 128 (terminal width) spaces followed by the next prompt; there is not a blank line.

@microsoft-github-policy-service microsoft-github-policy-service bot added Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting Needs-Tag-Fix Doesn't match tag requirements labels Dec 21, 2024
@vefatica
Copy link
Author

vefatica commented Jan 6, 2025

There has been no comment so I tried it again. The result was the same. Copying several lines (which include a blank line) in WSL and then pasting into notepad results in 128 spaces (my terminal width) where the blank line was, and no newline. I tried this using both bash and tcsh in WSL with the same undesirable result. It does not happen when I do the same experiment in a Windows shell.

@lhecker
Copy link
Member

lhecker commented Jan 6, 2025

Most of the team was out on vacation over the holidays. What shell are you using? If it's bash, can you try launching a nested shell with env -i bash --norc --noprofile and then try executing echo and copying the results?

@vefatica
Copy link
Author

vefatica commented Jan 6, 2025

That works OK. In fact, I can't get it to screw up in bash now. But in tcsh, it's as described. In both shells, I used printf "foo\n\n" to test.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs-Tag-Fix Doesn't match tag requirements 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