diff options
author | Kirill Chibisov <contact@kchibisov.com> | 2020-06-07 00:33:20 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-07 00:33:20 +0300 |
commit | 4f5f8412966626771043bd3a90800124fed44ebe (patch) | |
tree | 264e8ffa917324b5e30b7532fcf7d773382012c3 /alacritty/src/main.rs | |
parent | 7aafbb757d485c5ff065324464dde8b5322cdd92 (diff) | |
download | r-alacritty-4f5f8412966626771043bd3a90800124fed44ebe.tar.gz r-alacritty-4f5f8412966626771043bd3a90800124fed44ebe.tar.bz2 r-alacritty-4f5f8412966626771043bd3a90800124fed44ebe.zip |
Remove copypasta dependency from alacritty_terminal
Diffstat (limited to 'alacritty/src/main.rs')
-rw-r--r-- | alacritty/src/main.rs | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/alacritty/src/main.rs b/alacritty/src/main.rs index a7f53c2a..9587aec3 100644 --- a/alacritty/src/main.rs +++ b/alacritty/src/main.rs @@ -23,7 +23,6 @@ use log::{error, info}; #[cfg(windows)] use winapi::um::wincon::{AttachConsole, FreeConsole, ATTACH_PARENT_PROCESS}; -use alacritty_terminal::clipboard::Clipboard; use alacritty_terminal::event::Event; use alacritty_terminal::event_loop::{self, EventLoop, Msg}; #[cfg(target_os = "macos")] @@ -35,6 +34,7 @@ use alacritty_terminal::term::Term; use alacritty_terminal::tty; mod cli; +mod clipboard; mod config; mod cursor; mod display; @@ -136,18 +136,12 @@ fn run(window_event_loop: GlutinEventLoop<Event>, config: Config) -> Result<(), info!("PTY dimensions: {:?} x {:?}", display.size_info.lines(), display.size_info.cols()); - // Create new native clipboard. - #[cfg(not(any(target_os = "macos", windows)))] - let clipboard = Clipboard::new(display.window.wayland_display()); - #[cfg(any(target_os = "macos", windows))] - let clipboard = Clipboard::new(); - // Create the terminal. // // This object contains all of the state about what's being displayed. It's // wrapped in a clonable mutex since both the I/O loop and display need to // access it. - let terminal = Term::new(&config, &display.size_info, clipboard, event_proxy.clone()); + let terminal = Term::new(&config, &display.size_info, event_proxy.clone()); let terminal = Arc::new(FairMutex::new(terminal)); // Create the PTY. |