You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The system clipboard the-clipboard cannot be cleared by sending it an empty string. And as far as I can tell, there is no clear-clipboard-string procedure available.
Also, if the clipboard is set using set-clipboard-string at the end of a program, it will not set the clipboard unless an extra (sleep 1) is inserted after.
This happens on Linux X11.
#lang racket/base
(require racket/class)
(require racket/gui/base)
;; This works.
(send the-clipboard set-clipboard-string "test" (current-seconds))
(sleep 1)
;; Problem 1: doesn't clear the clipboard
(send the-clipboard set-clipboard-string "" (current-seconds))
(sleep 1)
;; Problem 2: Clipboard not set without an extra sleep
(send the-clipboard set-clipboard-string "test2" (current-seconds))
;; (sleep 1) ;shouldn't need this
The text was updated successfully, but these errors were encountered:
The system clipboard
the-clipboard
cannot be cleared by sending it an empty string. And as far as I can tell, there is noclear-clipboard-string
procedure available.Also, if the clipboard is set using
set-clipboard-string
at the end of a program, it will not set the clipboard unless an extra(sleep 1)
is inserted after.This happens on Linux X11.
The text was updated successfully, but these errors were encountered: