Skip to main content

Module spinner

Module spinner 

Source
Expand description

Braille spinner used while a turn is in flight.

Goal-144 introduces a single-line spinner rendered transiently at the bottom of the transcript while crate::tui::app::TurnState::running is true. The animation frame is driven by a counter in crate::tui::app::App::spinner_frame that the main loop ticks every draw cycle.

Constants§

FRAMES
10-frame braille spinner sequence (≈100ms per frame at 50ms ticks).

Functions§

format_line
Format the spinner one-liner: <spinner> <verb> <elapsed>s.
frame_char
Look up the spinner glyph for a given monotonically-increasing frame counter.