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

Extended Clipboard Support #834

Merged
merged 6 commits into from
Jul 1, 2019
Merged

Conversation

CendioOssman
Copy link
Member

@CendioOssman CendioOssman commented May 10, 2019

Implements the extended clipboard extension from UltraVNC.

So far it only uses the text portion, but that is still an improvement as that supports full Unicode and not just ISO 8859-1.

This extension is also slightly more bandwidth efficient as the data is compressed.

This fixes #20.

This is required by the protocol so we should make sure it is
enforced. We are tolerant of clients that violate this though and
convert incoming clipboard data.
We now filter incoming data, which means we can start assuming the
clipboard data is always null terminated. This allows us to clean
up a lot of the internal handling.
We convert between UTF-8 and ISO 8859-1 (latin 1) in several places
so create some common routines for this.
Change the internal clipboard API to use a request based model in
order to be prepared for more advanced clipboard transfers.
In prepartion for better clipboard extensions that can send Unicode
data between the client and server.
Implements support in both client and server for the extended
clipboard format first seen in UltraVNC. Currently only implements
text handling, but that is still an improvement as it extends the
clipboard from ISO 8859-1 to full Unicode.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Clipboard does not transfer unicode strings between client and server
2 participants