mirror of
https://github.com/alacritty/alacritty.git
synced 2025-11-06 22:44:18 -05:00
Switch from copypasta to rust-clipboard
This switches our own `copypasta` crate with the more standardized `clipboard` library, which allows us to get rid of the `xclip` dependency on X11. Additionally, this lays the foundation for native Wayland clipboard support once the clipboard crate is updated (or a fork is created). Fixes #5.
This commit is contained in:
parent
37b66a7cd2
commit
9e89aaa477
22 changed files with 302 additions and 924 deletions
|
|
@ -7,6 +7,7 @@ use std::io::{self, Read};
|
|||
use std::path::Path;
|
||||
|
||||
use alacritty_terminal::ansi;
|
||||
use alacritty_terminal::clipboard::Clipboard;
|
||||
use alacritty_terminal::config::Config;
|
||||
use alacritty_terminal::index::Column;
|
||||
use alacritty_terminal::message_bar::MessageBuffer;
|
||||
|
|
@ -92,7 +93,7 @@ fn ref_test(dir: &Path) {
|
|||
let mut config: Config = Default::default();
|
||||
config.set_history(ref_config.history_size);
|
||||
|
||||
let mut terminal = Term::new(&config, size, MessageBuffer::new());
|
||||
let mut terminal = Term::new(&config, size, MessageBuffer::new(), Clipboard::new_nop());
|
||||
let mut parser = ansi::Processor::new();
|
||||
|
||||
for byte in recording {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue