Skip to content

Improved clipboard handling (similar to rust-clipboard)

License

Notifications You must be signed in to change notification settings

fschutt/clipboard2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

clipboard2

Build status Travis Build Status

Hard fork of https://github.com/aweinstock314/rust-clipboard

This library has better error handling than the original one, the code is mostly copied.

Usage

extern crate clipboard2;

use clipboard2::{Clipboard, SystemClipboard};

fn main() {
    let clipboard = SystemClipboard::new().unwrap();
    clipboard.set_string_contents(String::from("Hello")).unwrap();
    println!("{}", clipboard.get_string_contents().unwrap());
}

About

Improved clipboard handling (similar to rust-clipboard)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages