-
Notifications
You must be signed in to change notification settings - Fork 8.4k
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 tcsh gives 128 spaces instead of a blank line #18348
Comments
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. |
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 |
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 |
Thanks for filing! Can you repro this under a debug tap and share your results? Here's a guide for debug tap: https://github.com/microsoft/terminal/wiki/Troubleshooting-Tips#capturing-a-debug-etl-trace Also, can you confirm whether you're using Tenex C Shell or TCC / TakeCommand /? |
The printf command was recalled from the history. In tcsh I see this. In the debug tap I see this. When I copy (left-drag) the 5 lines of output from tcsh and paste into notepad, I get this. |
Hey, thanks for that!
I see that tcsh is emitting It is almost explicitly jumping to the end of the line and emitting spaces so that it wraps. That is the effect of writing spaces off the right-hand side of the screen. Looks like tcsh's doing. |
Thanks, Dustin. That's bizarre. I wonder what the motivation was. |
Probably a dup; I couldn't find it.
WindowsTerminal 1.22.2411.18002 (preview)
If, in WT, I copy (Left-Drag, Right), as pictured,
and paste into notepad, I get what's expected (no extra stuff).
If I do the same in WSL
and paste into notepad, I get (this is hard to picture)
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.
The text was updated successfully, but these errors were encountered: