clipboard

Name

clipboard -- Manipulate the clipboard.

Synopsis

clipboard [subcommand] [-option value...]

Description

With the clipboard command the clipboard can be manipulated.

Subcommands

clipboard hasText

Returns a boolean whether the clipboard contains text.

clipboard setText [text]

Sets the content of the clipboard to text.

clipboard getText

Returns the content of the clipboard if it contains text. Otherwise returns the empty string.

clipboard clear

Clears the clipboard.