aboutsummaryrefslogtreecommitdiff
path: root/copypasta/examples/primary_selection.rs
diff options
context:
space:
mode:
authorChristian Duerr <contact@christianduerr.com>2020-01-11 02:23:13 +0100
committerGitHub <noreply@github.com>2020-01-11 02:23:13 +0100
commitc2c8d6bf371433a3158fda769829714c5b99f62a (patch)
treeef5e8624174aa108de8a7f62f09f0fa18904c2cf /copypasta/examples/primary_selection.rs
parentc34ec12c309695e4c14d8e50b5f3f54198f70775 (diff)
downloadr-alacritty-c2c8d6bf371433a3158fda769829714c5b99f62a.tar.gz
r-alacritty-c2c8d6bf371433a3158fda769829714c5b99f62a.tar.bz2
r-alacritty-c2c8d6bf371433a3158fda769829714c5b99f62a.zip
Move Alacritty to organization
This fixes various outdated links pointing to the old jwilm/alacritty repository. Since `copypasta` now has its own github repository at https://github.com/alacritty/copypasta, the sources have been removed from Alacritty.
Diffstat (limited to 'copypasta/examples/primary_selection.rs')
-rw-r--r--copypasta/examples/primary_selection.rs20
1 files changed, 0 insertions, 20 deletions
diff --git a/copypasta/examples/primary_selection.rs b/copypasta/examples/primary_selection.rs
deleted file mode 100644
index 31640807..00000000
--- a/copypasta/examples/primary_selection.rs
+++ /dev/null
@@ -1,20 +0,0 @@
-extern crate copypasta;
-
-#[cfg(target_os = "linux")]
-use copypasta::x11_clipboard::{Primary, X11ClipboardContext};
-#[cfg(target_os = "linux")]
-use copypasta::ClipboardProvider;
-
-#[cfg(target_os = "linux")]
-fn main() {
- let mut ctx = X11ClipboardContext::<Primary>::new().unwrap();
-
- let the_string = "Hello, world!";
-
- ctx.set_contents(the_string.to_owned()).unwrap();
-}
-
-#[cfg(not(target_os = "linux"))]
-fn main() {
- println!("Primary selection is only available under linux!");
-}