1
0
Fork 0
mirror of https://github.com/alacritty/alacritty.git synced 2024-11-11 13:51:01 -05:00
alacritty/copypasta/examples/hello_world.rs
2019-06-09 11:46:31 +00:00

12 lines
253 B
Rust

extern crate copypasta;
use copypasta::ClipboardContext;
use copypasta::ClipboardProvider;
fn main() {
let mut ctx = ClipboardContext::new().unwrap();
let the_string = "Hello, world!";
ctx.set_contents(the_string.to_owned()).unwrap();
}