Deprecated Package Version
Reason: Legacy
The package has been depreciated in favor of Medo.PTClipboard that, in addition to X11, also supports Wayland and Win32 clipboard access.
Install
| Product | Versions |
|---|---|
| .NET |
README
Medo.X11Clipboard
X11Clipboard library is designed for applications that need to interact with the X11 clipboard system. This library provides essential functions for getting and setting UTF-8 text content for both X11's primary selection and clipboard. This makes it ideal for applications that require straightforward clipboard interactions without the overhead of more comprehensive libraries.
Features:
- Supports both primary selection and clipboard GetText and SetText operations.
- .NET 8 AOT support
You can find packaged library at NuGet.
Usage
To write and read X11 primary selection (aka, middle-click clipboard):
using System;
using Medo.X11;
X11Clipboard.Primary.SetText("My text.");
Console.WriteLine(X11Clipboard.Primary.GetText());
To write and read normal clipboard:
using System;
using Medo.X11;
X11Clipboard.Clipboard.SetText("My text.");
Console.WriteLine(X11Clipboard.Clipboard.GetText());
Adoption Assessment
A verified publisher signal is available. Assess fit from the package's supported frameworks, license and dependency graph rather than popularity alone.
Related Guides & Workflows
Learn how to evaluate, integrate, or audit this package in your .NET project.