Skip to main content

Crate index_renderer

Crate index_renderer 

Source
Expand description

Terminal renderer for Index documents.

The renderer consumes IndexDocument only. It never parses HTML and keeps viewport, overlays, command state, and terminal drawing local to this crate.

Structs§

FormEdit
Current interactive form edit state.
ReaderProfileSuggestion
Automatic reader profile suggestion.
RenderOptions
Rendering options.
RepairRecipe
Local repair recipe for reproducing presentation-only fixes.
TerminalApp
Terminal document application state.
TerminalCapabilities
Terminal capabilities that affect theme selection.
Theme
Terminal theme colors.
TuiDocumentResult
Result returned by the host after navigation or form submission.
Viewport
Viewport state for the document view.

Enums§

AnimationMode
Terminal animation capability used for accessibility fallbacks.
AppAction
Result of handling a key event.
ColorSupport
Terminal color capability used to choose deterministic theme fallbacks.
GlyphSupport
Terminal glyph capability used for icon fallback.
InputMode
Current input mode.
ReaderProfileIntent
Inferred page intent for automatic reader profile selection.
RepairAction
Local presentation repair action.
TableMode
Table presentation mode local to the terminal renderer.

Functions§

render_document
Renders a document as terminal-friendly plain text.
run_tui
Runs the interactive TUI until the user quits.
run_tui_with_navigation
Runs the interactive TUI with a navigation handler for :open actions.
run_tui_with_navigation_and_profile
Runs the interactive TUI with a navigation handler and initial reader profile.
run_tui_with_navigation_profile_and_forms
Runs the interactive TUI with navigation and form submission handlers.
run_tui_with_navigation_profile_forms_and_state
Runs the interactive TUI with navigation, form submission, and local session state.
run_tui_with_navigation_profile_forms_and_state_with_progress
Runs the interactive TUI with navigation, form submission, local session state, and progress callbacks for long-running open/submit operations.
suggest_reader_profile
Returns a deterministic reader profile suggestion for a document.