klyn.gui.terminal.Terminal.copyToClipboard
method

    public static copyToClipboard(text as String) as Boolean:

Description

Copies text to the host terminal clipboard using the OSC 52 escape sequence.

The method returns `false` when the value is empty or when the active terminal rejects clipboard transfer. Terminals can disable OSC 52 for security reasons; callers should treat failure as non-fatal UI behavior.

    terminal = Terminal.instance
    Terminal.copyToClipboard("selected text")