Table of Contents

Class ClipboardHelper

Namespace
SharpConsoleUI.Helpers
Assembly
SharpConsoleUI.dll

Cross-platform clipboard helper for console applications. On Linux tries wl-clipboard, xclip, xsel. Falls back to an in-process buffer when no external tool is available. Operations are best-effort and will not throw on failure.

public static class ClipboardHelper
Inheritance
ClipboardHelper
Inherited Members

Properties

Backend

The clipboard backend currently in use. Triggers detection on first access.

public static ClipboardBackend Backend { get; }

Property Value

ClipboardBackend

Methods

GetText()

Returns the current text content of the system clipboard, or empty string on failure.

public static string GetText()

Returns

string

SetText(string)

Copies the specified text to the system clipboard.

public static void SetText(string text)

Parameters

text string