-
Notifications
You must be signed in to change notification settings - Fork 54
Use OSC 52 for "copy to clipboard" action #91
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
Conversation
Does this work with Windows |
It may work on Windows 10 1511 and later versions, but I do not have a Windows machine to test that. (EDIT: Seems not supported now, even for Windows Terminal) Maybe we can add a platform-specific dependency for that? However, copying over SSH is not supported for any other methods, so I would recommend to use a terminal which supports OSC 52 on Windows. |
Note that on Linux servers without GUI sessions (where most clipboard actions take place for me), there is not such a "clipboard". Any clipboard operations through Since (I find these words a little offensive, hope you don't mind that.) |
If it already works, why make it doesn't work anymore? That doesn't make sense! |
It doesn't work for me! I cannot even compile it on Termux since |
Then try to make it working for you and don't break other platform functions at the same time. You could use |
For the platforms support OSC 52, using arboard means it won't work for copy over SSH. For those don't, a manual copy with mouse always work. Remove arboard makes dep tree much simpler. If you can solve all these problems easily, file your PR. If your PR solves my problem, I will close mine. I take no warranty for the open-source code I provide (as MIT & Apache license said), and the maintainers can choose whether or not to merge this PR. |
That's fine. Let maintainers decide. |
Windows Terminal appears to support it, but I don't have a device to confirm that. microsoft/terminal#5823, microsoft/terminal#2946 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is lovely! So many dependencies removed. A few terminals don't seem to support this yet, but I agree that this is probably a reasonable trade-off.
Description
See: #69 (comment)
In short, this makes "copy to clipboard" easier for SSH users, and makes Termux build easier, since arboard only handles local clipboard and does not support Termux.
Alternatives
Most non-OSC 52 implementations don't support copy over SSH to client, including:
NopClipboardContext
on Android). (Can use OSC 52 copy withcopypasta-ext
crate)