clipboard-anywhere
A simple wrapper around clipboard
that works in a few more situations:
- When used in Linux under WSL, it will copy to the Windows clipboard using
clip.exe
- When used in a remote SSH session, it will use the OSC 52 control sequence to copy to the client clipboard
Usage
```rust
use clipboardanywhere::setclipboard;
let text = "Hello, world!";
clipboardanywhere::setclipboard(text)?;
```
To Do
- [ ] Define custom errors instead of passing everything through Anyhow
- [ ] Write some integration tests