Clipboard

interface Clipboard

Puts text on the clipboard of the computer running the terminal.

Properties

Link copied to clipboard

What was put on the clipboard last, with setText or by selecting text on the screen, or null before anything was. Each copy is a value of its own, also of the same text, so that a composition which reads it is recomposed once more is copied, for example to say so.

Functions

Link copied to clipboard
abstract fun setText(text: String)

Copies text to the clipboard, using the OSC 52 escape sequence once the next frame is rendered. Terminals may ignore it, or ask the user for permission first.