Module andiskaz::clipboard

source ·
Expand description

Provides an interface to system clipboard. Supports Windows, MacOS, Linux (X11), Linux (Wayland).

Functions

  • Gets the content of the clipboard. May fail if clipboard is not an UTF-8 string or for another low-level cause.
  • Sets the content of the clipboard to the given string. May fail if clipboard is not an UTF-8 string or for another low-level cause.