clipboard

package
v0.0.0-...-db6c267 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2015 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package clipboard provides a simple API for handling data exchange between the Go client and system clipboard. This package currently only supports small data strings for PRIMARY and CLIPBOARD selections.

Useful things to read: Intro to X selections: http://www.jwz.org/doc/x-cut-and-paste.html Technical ICCCM manual: http://www.x.org/releases/X11R7.6/doc/xorg-docs/specs/ICCCM/icccm.html

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Clear

func Clear()

Clear clears clipboard data by giving up selection ownership.

func Put

func Put(data []byte) (<-chan string, <-chan error)

Makes data available for PRIMARY and CLIPBOARD selection requests. This function does not block. Requestor names are sent to the string channel and errors are sent to the error channel.

func Setup

func Setup() (err error)

Performs initialization for clipboard to work. Not using init() to prevent unnecessary invocations.

Types

This section is empty.

Jump to

Keyboard shortcuts

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