terminal
terminal copied to clipboard
Rewrite the copy-to-clipboard functionality to use the Win32 functions
Windows Terminal version
1.18.10301.0
Windows build number
10.0.19045.3930
Other Software
No response
Steps to reproduce
- Select output
- [CTRL + C] or [right click] or [CTRL + Shift + P (command palette -> "Copy Text" option]
- Neither [CTRL + V] pastes nor does [Win + V] have the selected and presumably copied text in the clipboard
Expected Behavior
Expecting copy from terminal into Windows Clipboard and paste into other programs to work as normal.
Actual Behavior
No text copied to clipboard. I can, at times, get it to continue functionality if I un-snap the Windows Terminal window from fullscreen view but this is only intermittently successful.
This happens whether my shell is ssh'ed to another machine or running locally.
Other programs continue to copy to clipboard and paste to other programs perfectly fine.
Hi I'm an AI powered bot that finds similar issues based off the issue title.
Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!
Closed similar issues:
- Copying text from terminal doesn't seem to work on Windows 11 (#11475), similarity score: 0.81
- select + enter does not copy selected text into clipboard just as old Terminal (#3179), similarity score: 0.79
Note: You can give me feedback by thumbs upping or thumbs downing this comment.
Maybe we need to rewrite the copy-to-clipboard functionality to use the Win32 functions as well. But 's fairly likely that your machine is having issues right now, like background applications trying to acquire the clipboard lock all the time, etc. May be worth trying to reboot / exiting all background applications, just in case.
Thanks for filing. Per Leonard's comment above, we'll repurpose this issue to track rewriting the clipboard code to use Win32 functions.
Same here on Terminal Windows Version: 1.19.10573.0 and Windows 11 23H2 OS Build 22631.3296.
The copy mechanism from the terminal randomly stops/starts working. It has been happening for a few weeks now.
I would appreciate any workaround (if any known). For now, it is only waiting until it randomly starts working once again.