clipboard

package
v1.9.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 27, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Clipboard

type Clipboard interface {
	Write(string) error
	Read() (string, error)
}

type MemoryClipboard

type MemoryClipboard struct {
	deadlock.RWMutex
	// contains filtered or unexported fields
}

func (*MemoryClipboard) Read

func (mc *MemoryClipboard) Read() (string, error)

func (*MemoryClipboard) Write

func (mc *MemoryClipboard) Write(text string) error

type OSC52Clipboard added in v1.7.0

type OSC52Clipboard struct {
	// contains filtered or unexported fields
}

func NewOSC52Clipboard added in v1.7.0

func NewOSC52Clipboard(writer io.Writer) *OSC52Clipboard

func (*OSC52Clipboard) Read added in v1.7.0

func (c *OSC52Clipboard) Read() (string, error)

func (*OSC52Clipboard) Write added in v1.7.0

func (c *OSC52Clipboard) Write(text string) error

type SystemClipboard

type SystemClipboard struct {
}

func NewSystemClipboard

func NewSystemClipboard() (*SystemClipboard, error)

func (*SystemClipboard) Read

func (c *SystemClipboard) Read() (string, error)

func (*SystemClipboard) Write

func (c *SystemClipboard) Write(text string) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL