From cbcc12944006603131119b73c2ad72ebccf4562d Mon Sep 17 00:00:00 2001 From: Christian Duerr Date: Sat, 3 Apr 2021 23:52:44 +0000 Subject: Add copy/paste/select hint actions This adds some built-in actions for handling hint selections without having to spawn external applications. The new actions are `Copy`, `Select` and `Paste`. --- alacritty_terminal/src/event.rs | 2 +- alacritty_terminal/src/event_loop.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'alacritty_terminal/src') diff --git a/alacritty_terminal/src/event.rs b/alacritty_terminal/src/event.rs index a1252570..70d16127 100644 --- a/alacritty_terminal/src/event.rs +++ b/alacritty_terminal/src/event.rs @@ -70,7 +70,7 @@ pub trait Notify { /// Notify that an escape sequence should be written to the PTY. /// /// TODO this needs to be able to error somehow. - fn notify>>(&mut self, _: B); + fn notify>>(&self, _: B); } /// Types that are interested in when the display is resized. diff --git a/alacritty_terminal/src/event_loop.rs b/alacritty_terminal/src/event_loop.rs index 09c71668..c3224dfe 100644 --- a/alacritty_terminal/src/event_loop.rs +++ b/alacritty_terminal/src/event_loop.rs @@ -62,7 +62,7 @@ struct Writing { pub struct Notifier(pub Sender); impl event::Notify for Notifier { - fn notify(&mut self, bytes: B) + fn notify(&self, bytes: B) where B: Into>, { -- cgit