klyn.gui.windows.Window.copyToClipboard
method

    public native copyToClipboard(text as String) as Boolean

Description

Copies plain text to the operating-system clipboard.

The visible native window owns the clipboard selection on platforms such as X11. The method therefore belongs to `Window` rather than to a global utility object.

Parameters

Parameter | Description
--- | ---
`text` | Plain text to copy.

Returns

True when the native backend accepted the clipboard contents.

Example

    if window.copyToClipboard("Build completed"):
    print("Copied")