clipboardwire

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package clipboardwire carries text clipboard changes over a container exec stream. It has no native clipboard dependencies and is also used by moat-init.

Index

Constants

View Source
const MaxTextBytes = 1024 * 1024

MaxTextBytes bounds both clipboard reads and stream frame allocations.

Variables

This section is empty.

Functions

func Read

func Read(r io.Reader, update func([]byte)) error

Read consumes updates until EOF. Malformed or oversized frames stop the stream.

func Write

func Write(w io.Writer, data []byte) error

Write sends one text update. Base64 preserves newlines and trailing spaces.

Types

This section is empty.

Jump to

Keyboard shortcuts

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