jabba-lib 0.1.8

A utility library, inspired mainly by Python.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use jabba_lib::jclipboard;

fn main() {
    jclipboard::check();

    for &text in &["", "a", "aa", "hello", "world", "rust", "Éva"] {
        jclipboard::set_text(text).unwrap();
        println!("The text {:?} was pasted on the clipboard", text);

        let read = jclipboard::get_text().unwrap();
        println!("Contents of the clipboard: {:?}", read);
        assert_eq!(read, text);
        println!("---");
    }
}