Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CopyTextOSC52 ¶ added in v0.0.112
CopyTextOSC52 writes an OSC 52 escape sequence directly to /dev/tty, instructing the terminal emulator to set the system clipboard. This works over SSH because the local terminal interprets the sequence. Writing to /dev/tty bypasses any stdout buffering or filtering by bubbletea.
func OSC52Sequence ¶ added in v0.0.112
OSC52Sequence returns the OSC 52 escape sequence that instructs a terminal emulator to set the system clipboard to text. Uses the ST (ESC \) terminator. If running inside tmux or screen, wraps the sequence in a DCS passthrough so the outer terminal receives it.
func ReadImage ¶
ReadImage reads image data from the system clipboard Returns the image data and an error if clipboard doesn't contain an image
func ReadPrimarySelection ¶ added in v0.0.62
ReadPrimarySelection reads from the PRIMARY selection (middle-click buffer on Linux). On macOS, falls back to the regular clipboard since there's no primary selection.
Types ¶
This section is empty.