diff options
Diffstat (limited to 'alacritty_terminal/src/ansi.rs')
-rw-r--r-- | alacritty_terminal/src/ansi.rs | 12 |
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), } }, |