pub struct ProgramConfig {Show 21 fields
pub screen_mode: ScreenMode,
pub ui_anchor: UiAnchor,
pub budget: FrameBudgetConfig,
pub diff_config: RuntimeDiffConfig,
pub evidence_sink: EvidenceSinkConfig,
pub render_trace: RenderTraceConfig,
pub frame_timing: Option<FrameTimingConfig>,
pub conformal_config: Option<ConformalConfig>,
pub locale_context: LocaleContext,
pub poll_timeout: Duration,
pub resize_coalescer: CoalescerConfig,
pub resize_behavior: ResizeBehavior,
pub forced_size: Option<(u16, u16)>,
pub mouse: bool,
pub bracketed_paste: bool,
pub focus_reporting: bool,
pub kitty_keyboard: bool,
pub persistence: PersistenceConfig,
pub inline_auto_remeasure: Option<InlineAutoRemeasureConfig>,
pub widget_refresh: WidgetRefreshConfig,
pub effect_queue: EffectQueueConfig,
}Expand description
Configuration for the program runtime.
Fields§
§screen_mode: ScreenModeScreen mode (inline or alternate screen).
ui_anchor: UiAnchorUI anchor for inline mode.
budget: FrameBudgetConfigFrame budget configuration.
diff_config: RuntimeDiffConfigDiff strategy configuration for the terminal writer.
evidence_sink: EvidenceSinkConfigEvidence JSONL sink configuration.
render_trace: RenderTraceConfigRender-trace recorder configuration.
frame_timing: Option<FrameTimingConfig>Optional frame timing sink.
conformal_config: Option<ConformalConfig>Conformal predictor configuration for frame-time risk gating.
locale_context: LocaleContextLocale context used for rendering.
poll_timeout: DurationInput poll timeout.
resize_coalescer: CoalescerConfigResize coalescer configuration.
resize_behavior: ResizeBehaviorResize handling behavior (immediate/throttled).
forced_size: Option<(u16, u16)>Forced terminal size override (when set, resize events are ignored).
mouse: boolEnable mouse support.
bracketed_paste: boolEnable bracketed paste.
focus_reporting: boolEnable focus reporting.
kitty_keyboard: boolEnable Kitty keyboard protocol (repeat/release events).
persistence: PersistenceConfigState persistence configuration.
inline_auto_remeasure: Option<InlineAutoRemeasureConfig>Inline auto UI height remeasurement policy.
widget_refresh: WidgetRefreshConfigWidget refresh selection configuration.
effect_queue: EffectQueueConfigEffect queue scheduling configuration.
Implementations§
Source§impl ProgramConfig
impl ProgramConfig
Sourcepub fn fullscreen() -> Self
pub fn fullscreen() -> Self
Create config for fullscreen applications.
Sourcepub fn inline_auto(min_height: u16, max_height: u16) -> Self
pub fn inline_auto(min_height: u16, max_height: u16) -> Self
Create config for inline mode with automatic UI height.
Sourcepub fn with_mouse(self) -> Self
pub fn with_mouse(self) -> Self
Enable mouse support.
Sourcepub fn with_budget(self, budget: FrameBudgetConfig) -> Self
pub fn with_budget(self, budget: FrameBudgetConfig) -> Self
Set the budget configuration.
Sourcepub fn with_diff_config(self, diff_config: RuntimeDiffConfig) -> Self
pub fn with_diff_config(self, diff_config: RuntimeDiffConfig) -> Self
Set the diff strategy configuration for the terminal writer.
Sourcepub fn with_evidence_sink(self, config: EvidenceSinkConfig) -> Self
pub fn with_evidence_sink(self, config: EvidenceSinkConfig) -> Self
Set the evidence JSONL sink configuration.
Sourcepub fn with_render_trace(self, config: RenderTraceConfig) -> Self
pub fn with_render_trace(self, config: RenderTraceConfig) -> Self
Set the render-trace recorder configuration.
Sourcepub fn with_frame_timing(self, config: FrameTimingConfig) -> Self
pub fn with_frame_timing(self, config: FrameTimingConfig) -> Self
Set a frame timing sink for per-frame profiling.
Sourcepub fn with_conformal_config(self, config: ConformalConfig) -> Self
pub fn with_conformal_config(self, config: ConformalConfig) -> Self
Enable conformal frame-time risk gating with the given config.
Sourcepub fn without_conformal(self) -> Self
pub fn without_conformal(self) -> Self
Disable conformal frame-time risk gating.
Sourcepub fn with_locale_context(self, locale_context: LocaleContext) -> Self
pub fn with_locale_context(self, locale_context: LocaleContext) -> Self
Set the locale context used for rendering.
Sourcepub fn with_locale(self, locale: impl Into<Locale>) -> Self
pub fn with_locale(self, locale: impl Into<Locale>) -> Self
Set the base locale used for rendering.
Sourcepub fn with_widget_refresh(self, config: WidgetRefreshConfig) -> Self
pub fn with_widget_refresh(self, config: WidgetRefreshConfig) -> Self
Set the widget refresh selection configuration.
Sourcepub fn with_effect_queue(self, config: EffectQueueConfig) -> Self
pub fn with_effect_queue(self, config: EffectQueueConfig) -> Self
Set the effect queue scheduling configuration.
Sourcepub fn with_resize_coalescer(self, config: CoalescerConfig) -> Self
pub fn with_resize_coalescer(self, config: CoalescerConfig) -> Self
Set the resize coalescer configuration.
Sourcepub fn with_resize_behavior(self, behavior: ResizeBehavior) -> Self
pub fn with_resize_behavior(self, behavior: ResizeBehavior) -> Self
Set the resize handling behavior.
Sourcepub fn with_forced_size(self, width: u16, height: u16) -> Self
pub fn with_forced_size(self, width: u16, height: u16) -> Self
Force a fixed terminal size (cols, rows). Resize events are ignored.
Sourcepub fn without_forced_size(self) -> Self
pub fn without_forced_size(self) -> Self
Clear any forced terminal size override.
Sourcepub fn with_legacy_resize(self, enabled: bool) -> Self
pub fn with_legacy_resize(self, enabled: bool) -> Self
Toggle legacy immediate-resize behavior for migration.
Sourcepub fn with_persistence(self, persistence: PersistenceConfig) -> Self
pub fn with_persistence(self, persistence: PersistenceConfig) -> Self
Set the persistence configuration.
Sourcepub fn with_registry(self, registry: Arc<StateRegistry>) -> Self
pub fn with_registry(self, registry: Arc<StateRegistry>) -> Self
Enable persistence with the given registry.
Sourcepub fn with_inline_auto_remeasure(
self,
config: InlineAutoRemeasureConfig,
) -> Self
pub fn with_inline_auto_remeasure( self, config: InlineAutoRemeasureConfig, ) -> Self
Enable inline auto UI height remeasurement with the given policy.
Sourcepub fn without_inline_auto_remeasure(self) -> Self
pub fn without_inline_auto_remeasure(self) -> Self
Disable inline auto UI height remeasurement.
Trait Implementations§
Source§impl Clone for ProgramConfig
impl Clone for ProgramConfig
Source§fn clone(&self) -> ProgramConfig
fn clone(&self) -> ProgramConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more