aboutsummaryrefslogtreecommitdiff
path: root/alacritty_terminal/src/ansi.rs
diff options
context:
space:
mode:
authorKirill Chibisov <contact@kchibisov.com>2020-06-07 00:33:20 +0300
committerGitHub <noreply@github.com>2020-06-07 00:33:20 +0300
commit4f5f8412966626771043bd3a90800124fed44ebe (patch)
tree264e8ffa917324b5e30b7532fcf7d773382012c3 /alacritty_terminal/src/ansi.rs
parent7aafbb757d485c5ff065324464dde8b5322cdd92 (diff)
downloadalacritty-4f5f8412966626771043bd3a90800124fed44ebe.tar.gz
alacritty-4f5f8412966626771043bd3a90800124fed44ebe.zip
Remove copypasta dependency from alacritty_terminal
Diffstat (limited to 'alacritty_terminal/src/ansi.rs')
-rw-r--r--alacritty_terminal/src/ansi.rs12
1 files changed, 6 insertions, 6 deletions
diff --git a/alacritty_terminal/src/ansi.rs b/alacritty_terminal/src/ansi.rs
index fe0cc162..619b1d39 100644
--- a/alacritty_terminal/src/ansi.rs
+++ b/alacritty_terminal/src/ansi.rs
@@ -307,11 +307,11 @@ pub trait Handler {
/// Reset an indexed color to original value.
fn reset_color(&mut self, _: usize) {}
- /// Set the clipboard.
- fn set_clipboard(&mut self, _: u8, _: &[u8]) {}
+ /// Store data into clipboard.
+ fn clipboard_store(&mut self, _: u8, _: &[u8]) {}
- /// Write clipboard data to child.
- fn write_clipboard<W: io::Write>(&mut self, _: u8, _: &mut W, _: &str) {}
+ /// Load data from clipboard.
+ fn clipboard_load(&mut self, _: u8, _: &str) {}
/// Run the decaln routine.
fn decaln(&mut self) {}
@@ -892,8 +892,8 @@ where
let clipboard = params[1].get(0).unwrap_or(&b'c');
match params[2] {
- b"?" => self.handler.write_clipboard(*clipboard, writer, terminator),
- base64 => self.handler.set_clipboard(*clipboard, base64),
+ b"?" => self.handler.clipboard_load(*clipboard, terminator),
+ base64 => self.handler.clipboard_store(*clipboard, base64),
}
},