pub enum AlacrittyEvent {
Show 13 variants
MouseCursorDirty,
Title(String),
ResetTitle,
ClipboardStore(ClipboardType, String),
ClipboardLoad(ClipboardType, Arc<dyn Fn(&str) -> String + Send + Sync>),
ColorRequest(usize, Arc<dyn Fn(Rgb) -> String + Send + Sync>),
PtyWrite(String),
TextAreaSizeRequest(Arc<dyn Fn(WindowSize) -> String + Send + Sync>),
CursorBlinkingChange,
Wakeup,
Bell,
Exit,
ChildExit(i32),
}Expand description
Terminal event.
These events instruct the UI over changes that can’t be handled by the terminal emulation layer itself.
Variants§
MouseCursorDirty
Grid has changed possibly requiring a mouse cursor shape change.
Title(String)
Window title change.
ResetTitle
Reset to the default window title.
ClipboardStore(ClipboardType, String)
Request to store a text string in the clipboard.
ClipboardLoad(ClipboardType, Arc<dyn Fn(&str) -> String + Send + Sync>)
Request to write the contents of the clipboard to the PTY.
The attached function is a formatter which will correctly transform the clipboard content into the expected escape sequence format.
ColorRequest(usize, Arc<dyn Fn(Rgb) -> String + Send + Sync>)
Request to write the RGB value of a color to the PTY.
The attached function is a formatter which will correctly transform the RGB color into the expected escape sequence format.
PtyWrite(String)
Write some text to the PTY.
TextAreaSizeRequest(Arc<dyn Fn(WindowSize) -> String + Send + Sync>)
Request to write the text area size.
CursorBlinkingChange
Cursor blinking state has changed.
Wakeup
New terminal content available.
Bell
Terminal bell ring.
Exit
Shutdown request.
ChildExit(i32)
Child process exited with an error code.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Event
impl !RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl !UnwindSafe for Event
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<State, Message> IntoBoot<State, Message> for State
impl<State, Message> IntoBoot<State, Message> for State
Source§fn into_boot(self) -> (State, Task<Message>)
fn into_boot(self) -> (State, Task<Message>)
Application.