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

Clear clipboard requires clipboard to be opened #316

Merged
merged 1 commit into from
Feb 9, 2024

Conversation

rexx-org
Copy link
Contributor

@rexx-org rexx-org commented Feb 7, 2024

As with other clipboard command, the clipboard needs to be open for them to work.

@Bill-Gray Bill-Gray merged commit a071130 into Bill-Gray:master Feb 9, 2024
4 checks passed
@Bill-Gray
Copy link
Owner

Seems strange to me we've not run into trouble with this before. However, "before calling EmptyClipboard, an application must open the clipboard by using the OpenClipboard function".

However, none of the demos and none of my code calls PDC_clearclipboard(). I could imagine it going through the past couple of decades unnoticed.

This code is identical to that in wincon/pdcclip.c in PDCurses, so @wmcbrine may be interested.

@GitMensch
Copy link
Collaborator

However, none of the demos and none of my code calls PDC_clearclipboard(). I could imagine it going through the past couple of decades unnoticed.

That calls for an adjustment in the demos, maybe with a user dialog "please copy text to your clipboard", "this was found", "I now clear the clipboard", ...

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.

3 participants