Enum alacritty_terminal::event::Event
source · pub enum Event {
Show 13 variants
MouseCursorDirty,
Title(String),
ResetTitle,
ClipboardStore(ClipboardType, String),
ClipboardLoad(ClipboardType, Arc<dyn Fn(&str) -> String + Sync + Send + 'static>),
ColorRequest(usize, Arc<dyn Fn(Rgb) -> String + Sync + Send + 'static>),
PtyWrite(String),
TextAreaSizeRequest(Arc<dyn Fn(WindowSize) -> String + Sync + Send + 'static>),
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 + Sync + Send + 'static>)
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 + Sync + Send + 'static>)
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 + Sync + Send + 'static>)
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.