gopass: Index | Files

package clipboard

import ""


Package Files

clipboard.go clipboard_others.go kill_ps.go unclip.go unclip_linux.go


var (
    // ErrNotSupported is returned when the clipboard is not accessible
    ErrNotSupported = fmt.Errorf("WARNING: No clipboard available. Install xsel or xclip or use -p to print to console")

func Clear Uses

func Clear(ctx context.Context, checksum string, force bool) error

Clear will attempt to erase the clipboard

func CopyTo Uses

func CopyTo(ctx context.Context, name string, content []byte) error

CopyTo copies the given data to the clipboard and enqueues automatic clearing of the clipboard

Package clipboard imports 18 packages (graph). Updated 2019-08-03. Refresh now. Tools for package owners.