API Reference
Class
Clipboard
Puts text on the clipboard without dependencies: the Win32 clipboard on Windows; elsewhere an OSC 52 request that most terminals (Windows Terminal, iTerm2, kitty, WezTerm, tmux with set-clipboard) honour.
Inheritance
- Object
- Clipboard
Methods
public static Boolean TrySetText(String text, Action<String>? osc52 = null) #Returns:
BooleanCopies text; returns whether the clipboard accepted it (OSC 52 cannot be confirmed and counts as sent).
Parameters
- text System.String
- The text.
- osc52 System.Action<System.String>? = null
- Writes an OSC 52 sequence through this callback when the Win32 clipboard is not available.
Returns
Whether it worked.
Inherited Methods
public virtual Boolean Equals(Object? obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object?