struct

Tea::ClipboardMsg

Inherits Tea::Msg < Struct < Value < Object

ClipboardMsg is emitted when the terminal receives an OSC52 clipboard read

Constructors

new(content : String, selection : UInt8 = 'c'.ord.to_u8)
Source

Instance methods

clipboard

Returns the clipboard selection type:

  • 'c': System clipboard
  • 'p': Primary clipboard (X11/Wayland only)
Source
content
Source
content=(content : String)
Source
selection
Source
selection=(selection : UInt8)
Source
string

Go parity helper for ClipboardMsg.String().

Source
to_s

Returns a nicely readable and concise string representation of this object, typically intended for users.

This method should usually not be overridden. It delegates to #to_s(IO) which can be overridden for custom implementations.

Also see #inspect.

Source