Install
dotnet add package Medo.PTClipboard --version 1.0.0
| Product | Versions |
|---|---|
| .NET |
README
Medo.PTClipboard
Plain-text clipboard that supports Windows and Linux (both X11 and Waylands). This library provides essential functions for retrieving and setting UTF-8 text content for both the standard clipboard and the primary selection. It allows for straightforward clipboard interactions without the overhead of more comprehensive libraries.
Features:
- Works on both Windows and Linux (Wayland, X11)
- Supports clipboard and primary selection buffers
Usage
To write and read clipboard:
using System;
using Medo;
PTClipboard.SetText("My text.");
Console.WriteLine(PTClipboard.GetText());
To write and read X11 primary selection (aka, middle-click clipboard):
using System;
using Medo;
PTClipboard.Selection.SetText("My text.");
Console.WriteLine(PTClipboard.Selection.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.
Compatibility metadata lists 1 target framework; confirm the exact target used by your application.
Related Guides & Workflows
Learn how to evaluate, integrate, or audit this package in your .NET project.