enum

Phosphor::ClipboardTool

Inherits Enum < Comparable < Value < Object

Clipboard tools ClipboardPort knows how to drive, detected once at construction time in priority order: Wayland's wl-clipboard, then X11's xclip, then xsel as an X11 fallback, then macOS's pbcopy/pbpaste pair. No supported tool found is represented as nil on ClipboardPort#tool, not a member of this enum.

Constants

WlClipboard = 0
Xclip = 1
Xsel = 2
MacosPasteboard = 3

Instance methods

macos_pasteboard?

Returns true if this enum value equals MacosPasteboard

Source
wl_clipboard?

Returns true if this enum value equals WlClipboard

Source
xclip?

Returns true if this enum value equals Xclip

Source
xsel?

Returns true if this enum value equals Xsel

Source