Skip to main content

Module core_tui

Module core_tui 

Source

Re-exports§

pub use style::theme_from_styles;
pub use theme_parser::ThemeConfigParser;
pub use types::ContentPart;
pub use types::FocusChangeCallback;
pub use types::InlineCommand;
pub use types::InlineEvent;
pub use types::InlineEventCallback;
pub use types::InlineHandle;
pub use types::InlineSession;
pub use types::ListOverlayRequest;
pub use types::ModalOverlayRequest;
pub use types::OverlayEvent;
pub use types::OverlayHotkey;
pub use types::OverlayHotkeyAction;
pub use types::OverlayHotkeyKey;
pub use types::OverlayRequest;
pub use types::OverlaySelectionChange;
pub use types::OverlaySubmission;
pub use types::WizardOverlayRequest;

Modules§

alternate_screen
app
log
panic_hook
Panic hook implementation for terminal UI applications This module provides a panic hook that restores terminal state when a panic occurs, preventing terminal corruption, and provides enhanced panic formatting for different build types.
runner
session
style
theme_parser
Parse theme configuration from multiple syntaxes (Git, LS_COLORS, custom).
types
widgets

Structs§

InlineHeaderBadge
A compact pill badge rendered in the header.
InlineHeaderContext
Session metadata displayed in the inline header.
InlineHeaderHighlight
A title + content highlight block in the header.
InlineHeaderStatusBadge
A labelled status badge for the header bar.
InlineLinkRange
Byte-range inside a line that is a clickable link.
InlineListItem
A selectable item inside a list overlay.
InlineListSearchConfig
Search configuration for a list overlay.
InlineSegment
A styled text segment with shared style.
InlineTextStyle
Inline text styling with foreground/background color and text effects.
InlineTheme
Resolved theme colors for inline rendering.
SecurePromptConfig
Configuration for a secure (masked) prompt input.
WizardStep
A single step in a wizard modal flow.

Enums§

EditingMode
Editing mode for the agent session.
InlineHeaderStatusTone
Status-badge tone used in header status indicators.
InlineLinkTarget
A clickable link target inside a transcript line.
InlineListSelection
Selection value returned from a list or wizard overlay.
InlineMessageKind
Message kind tag for inline transcript lines.
RewindAction
Rewind action choices for the rewind overlay.
WizardModalMode
Wizard modal behavior variant.

Functions§

convert_style
Convert an anstyle::Style to an InlineTextStyle.
spawn_session
spawn_session_with_prompts
Spawn session with optional custom prompts pre-loaded
spawn_session_with_prompts_and_options
Spawn session with host-injected UI options.