ui/widgets/prompt_runner library
Classes
- Focusable
- An interface that indicates a widget or state can receive keyboard focus.
- KeyEventHandler
- An interface that indicates a widget or state can handle terminal keyboard events.
-
PromptRunner<
T> - A helper class to run an interactive terminal prompt inline. It encapsulates the event loop, rendering to an inline buffer, and lifecycle management.
- PromptScope
- An inherited widget that abstracts prompt completion and lifecycle controls, shielding descendant widgets from any low-level/internal event buses.
Enums
- PromptExitAction
- Defines the state outcome of the PromptRunner when an exit trigger is matched.
- PromptExitTrigger
- Defines keyboard inputs or signals that can terminate the prompt runner's execution.
Extensions
- PrintWidgetExtension on Terminal
- Extension on term.Terminal to print a widget inline using the double-buffered renderer layout.
Exceptions / Errors
- PromptAbortedException
- Base exception thrown when a PromptRunner is aborted via PromptExitAction.abort.
- UserInterruptException
- Specialized exception for user keyboard interrupts (typically Ctrl+C).