-
-
Notifications
You must be signed in to change notification settings - Fork 318
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
[Feature request] Support for setting clipboard #561
Comments
Interesting. How would you expect an application to meaningfully use this? It's something new to me. |
Another reference: microsoft/terminal#2946 |
Well, just setting the clipboard to something (if the terminal emulator in use supports it). |
@Consolatis A Go clipboard library like https://github.com/golang-design/clipboard should be better than tcell as a solution for this problem. |
Of course it depends on which clipboard you want to access, if it is a ssh application, then with a clipboard library like I potsed you cna only get the local clipboard (of where the application is running), which may be the wrong clipboard... |
@bjorndm The variant proposed here and in #562 is much better (for terminal applications) than any random external clipboard library as it just tells the terminal emulator in use to set the clipboard content. It is then the job of the terminal emulator to actually do that. This works across ssh and on any OS which has a terminal emulator that supports the |
Terminfo seems to provide
Ms
for this case so it can be feature detected and used pretty easy:The text was updated successfully, but these errors were encountered: