Skip to main content

Module tui_compat

Module tui_compat 

Source
Expand description

Compatibility layer between core config types and TUI types. Compatibility layer between vtcode-core config types and TUI types.

These conversions bridge the core configuration layer with the UI surface types shared via vtcode-commons::ui_protocol.

Functionsยง

inline_theme_from_core_styles
Build an InlineTheme from core ThemeStyles.
reasoning_from_selection_string
Convert a reasoning selection string back to a ReasoningEffortLevel.
reasoning_to_selection_string
Convert a config ReasoningEffortLevel to the string form used by InlineListSelection::Reasoning.
to_tui_appearance
Build a SessionAppearanceConfig from the loaded VTCodeConfig.
to_tui_fullscreen
Build FullscreenInteractionSettings from the loaded VTCodeConfig.
to_tui_keyboard_protocol
Convert a KeyboardProtocolConfig to the TUI KeyboardProtocolSettings.
to_tui_slash_commands
Convert a slice of SlashCommandInfo to TUI SlashCommandItem values.
to_tui_surface
Convert a config UiSurfacePreference to the TUI SessionSurface enum.
tui_theme_styles_from_core
Convert core ThemeStyles to the TUI ThemeStyles variant (TUI build).