ui/widgets/core/prompt_runner library

Classes

ListenableSceneRenderer
An interface for SceneRenderers that can notify their manager when they need a visual update.
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.
SceneLayer
Represents a single renderable layer inside a composited terminal scene.
SceneRenderer
An interface representing a rendering system in a composited scene.
TerminalStateRequest
A contract defining terminal state requests from a runner or layer.

Enums

ExecutionMode
Defines the execution mode for the PromptRunner.
LayerSizing
Defines sizing policies for layout layers in a compositing scene.
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).