Skip to main content

Module tui

Module tui 

Source
Expand description

Opt-in terminal dashboard for live metrics (RLG_TUI=1). Opt-in terminal dashboard for live observability metrics.

Set RLG_TUI=1 to spawn a background render thread that paints a non-clobbering sparkline dashboard at ~60 FPS. Enable the tui feature for automatic terminal size detection; otherwise falls back to 80x24.

Structs§

TuiMetrics
Atomic counters for the TUI dashboard. Cache-line aligned (repr(align(64))).

Functions§

build_fmt_line
Builds the format counts line from metrics.
compute_level_bars
Computes level bar rendering from metrics.
get_terminal_height_of
Returns the terminal height for the given handle, or 24 as fallback.
render_tick
Performs one tick of the TUI dashboard, returning the ANSI-formatted frame.
spawn_tui_thread
Spawns the background TUI renderer thread.