hostclip

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package hostclip sets the host machine's clipboard. It is used by the clipboard-paste text-entry path: set the host clipboard, let VirtualBox's shared clipboard sync it into the guest, then send a paste chord.

The server runs on the host, so the relevant OS is the host OS (which may be Linux, macOS, or Windows regardless of the guest OS). A GUI session and an appropriate clipboard helper must be available; headless hosts have no clipboard and Set returns a descriptive error.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Set

func Set(ctx context.Context, text string) error

Set places text on the host clipboard, returning a helpful error if no clipboard helper is available.

Types

This section is empty.

Jump to

Keyboard shortcuts

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