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

fixes #561 Add clipboard support. #714

Merged
merged 1 commit into from Mar 10, 2024
Merged

fixes #561 Add clipboard support. #714

merged 1 commit into from Mar 10, 2024

Conversation

gdamore
Copy link
Owner

@gdamore gdamore commented Mar 10, 2024

This is not supported for Windows or WebAssembly yet. It's possible for applications to post to the clipboard using Screen.SetClipboard (any data), and they can retrieve the clipboard (if permitted) using GetClipboard. The terminal may well reject either of these.

Retrieval will arrive as a new EventClipboard, if it can. (There is no good way to make this synchronous.)

This work was inspired by a PR submitted by Consolatis (#562), and has some work based on it, but it was also substantially improved and now includes both sides of the clipboard access pattern.

This is not supported for Windows or WebAssembly yet.
It's possible for applications to post to the clipboard using
Screen.SetClipboard (any data), and they can retrieve the clipboard
(if permitted) using GetClipboard.  The terminal may well reject either
of these.

Retrieval will arrive as a new EventClipboard, if it can.  (There is
no good way to make this synchronous.)

This work was inspired by a PR submitted by Consolatis (#562), and
has some work based on it, but it was also substantially improved and
now includes both sides of the clipboard access pattern.
@gdamore gdamore merged commit 78110e3 into main Mar 10, 2024
4 checks passed
@gdamore gdamore deleted the gdamore/clipboard branch March 10, 2024 21:20
@gdamore gdamore mentioned this pull request Mar 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant