pub enum Event {
PasteUpload {
id: u64,
text: Arc<str>,
},
PasteCancelled {
id: u64,
},
Line(String),
Eof,
CancelPrompt,
Resize {
width: u16,
height: u16,
},
FocusChanged {
focused: bool,
},
BufferChanged,
BackTab,
Escape,
Action(String),
}Expand description
High-level events surfaced to the caller.
Variants§
PasteUpload
Upload one normalized paste while its original draft stays frozen.
Fields
PasteCancelled
Cancel one paste upload without canceling an agent prompt.
Line(String)
The user submitted a line (pressed Enter by default, Ctrl-Enter,
or ran submit-prompt with no completion preview).
Eof
The user signalled EOF (Ctrl-D on empty line).
CancelPrompt
The user requested prompt cancellation with a second consecutive Ctrl-C.
Resize
The terminal was resized.
FocusChanged
The terminal reported focus gained or lost.
BufferChanged
The input buffer changed (or the completion menu cycled, opened, or closed). Caller should redraw any prompt-derived UI.
BackTab
Shift+Tab pressed outside an open completion menu.
Escape
Escape pressed outside an open completion menu.
Action(String)
A binding requested an application-defined action without touching the prompt draft.