Skip to content

Conversation

CendioNiko
Copy link
Contributor

The current clipboard did not support transferring Unicode characters. This pull request adds support for extended clipboard pseudo-encoding on the client. The server must also support extended clipboard pseoudo-encoding for this solution to take effect. The servers I know of use this protocol is TigerVNC and UltraVNC.

Fixes #61

@CendioOssman CendioOssman added this to the v1.2.0 milestone Feb 11, 2020
@CendioNiko CendioNiko force-pushed the clipboard_unicode branch 2 times, most recently from 5c14525 to df3941c Compare February 14, 2020 10:27
@CendioNiko
Copy link
Contributor Author

Tested against Xvnc server with extended clipboard pseudo-encoding support on following:

Windows 10 Fedora 30 macOs 10.15.3
Chrome ✔ v.79 ✔ v.78 ✔ v.80
Firefox ✔ v.72 ✔ v.69 ✔ v.71
Internet Explorer ✔ v.11 - -
Microsoft Edge ✔ v.44 - -
Safari - - ✔ v.13

Also tested against older Xvnc server that did not support extended clipboard pseudo-encoding on Fedora 30 in Firefox 69.

Don't rely on clientCutText() to test clipboardPasteFrom().
Wraps pako's deflate for easier usage.
Will be used in later commit in extended clipboard handling.
The value true was an invalid flush argument so it was in practice
unused.
Every call wants this check so this should be done inside the class.
Added ability to read data chunk wise.
@CendioNiko CendioNiko force-pushed the clipboard_unicode branch 2 times, most recently from df12343 to f6cfba4 Compare February 17, 2020 14:09
Add extended clipboard pseudo-encoding to allow the use of unicode
characters in the clipboard.
Copy link
Member

@CendioOssman CendioOssman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some minor things I adjusted, but other than that everything should be good to go now. :)

@CendioOssman CendioOssman merged commit f73fdc3 into novnc:master Feb 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add support for UltraVNCs extended Clipboard
3 participants