Issue with golang.design/x/clipboard

151 views
Skip to first unread message

Arie van Wingerden

unread,
Mar 9, 2024, 5:04:21 PM3/9/24
to golang-nuts
See my code attached!

My issue is that, after writing to the clipboard, I can only read the string I wrote back during the period I "sleep" after the write.

If I do not sleep, the clipboard immediately reverts to "empty".

Am I doing something wrong here?

TIA
Arie
clipboard_example.go

Robert Engels

unread,
Mar 9, 2024, 6:25:00 PM3/9/24
to Arie van Wingerden, golang-nuts
Take a look at the source for the gclip command - that seems to do what you are attempting to do.


On Mar 9, 2024, at 4:04 PM, Arie van Wingerden <xap...@gmail.com> wrote:

See my code attached!
--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/a6325fba-098e-4e42-ac4e-003d270fc3a0n%40googlegroups.com.
<clipboard_example.go>
Reply all
Reply to author
Forward
0 new messages