Something went wrong. Try again.
small gleam coding and persistent agent daemon with a detachable cli and a canvas ui forked from okami.mom/albedo
Something went wrong. Try again.
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273package tea
// ClipboardMsg is a clipboard read message event. This message is emitted when// a terminal receives an OSC52 clipboard read message event.type ClipboardMsg struct { Content string Selection byte}
// Clipboard returns the clipboard selection type. This will be one of the// following values://// - c: System clipboard.// - p: Primary clipboard (X11/Wayland only).func (e ClipboardMsg) Clipboard() byte { return e.Selection}
// String returns the string representation of the clipboard message.func (e ClipboardMsg) String() string { return e.Content}
// setClipboardMsg is an internal message used to set the system clipboard// using OSC52.type setClipboardMsg string
// SetClipboard produces a command that sets the system clipboard using OSC52.// Note that OSC52 is not supported in all terminals.func SetClipboard(s string) Cmd { return func() Msg { return setClipboardMsg(s) }}
// readClipboardMsg is an internal message used to read the system clipboard// using OSC52.type readClipboardMsg struct{}
// ReadClipboard produces a command that reads the system clipboard using OSC52.// Note that OSC52 is not supported in all terminals. Use [WithInput] to enable// input, since the reply cannot be read otherwise.func ReadClipboard() Msg { return readClipboardMsg{}}
// setPrimaryClipboardMsg is an internal message used to set the primary// clipboard using OSC52.type setPrimaryClipboardMsg string
// SetPrimaryClipboard produces a command that sets the primary clipboard using// OSC52. Primary clipboard selection is a feature present in X11 and Wayland// only.// Note that OSC52 is not supported in all terminals.func SetPrimaryClipboard(s string) Cmd { return func() Msg { return setPrimaryClipboardMsg(s) }}
// readPrimaryClipboardMsg is an internal message used to read the primary// clipboard using OSC52.type readPrimaryClipboardMsg struct{}
// ReadPrimaryClipboard produces a command that reads the primary clipboard// using OSC52. Primary clipboard selection is a feature present in X11 and// Wayland only.// Note that OSC52 is not supported in all terminals. Use [WithInput] to enable// input, since the reply cannot be read otherwise.func ReadPrimaryClipboard() Msg { return readPrimaryClipboardMsg{}}