← all modules
module

stdlib::spinner

defined in C:\Users\bye45\.glide\bin/src/stdlib/spinner.glide

Start a spinner with `msg` as the initial status. Replaces any

fn fn spinner_start(msg: string)

Start a spinner with msg as the initial status. Replaces any active spinner. On a non-TTY stdout the animation is skipped and msg prints as a plain line; spinner_finish still emits its final line so log scrapers see the result.

glide
spinner_start("compiling…");
fn fn spinner_set(msg: string)

Update the live spinner's status text. No-op when no spinner is active. On non-TTY stdouts this emits a fresh status line.

glide
spinner_set("linking…");
fn fn spinner_finish(ok: bool, msg: string)

Stop the animator (joining its pthread), clear the spinner line, then print ✓ msg (when ok) or ✗ msg (when not). Pass an empty msg to suppress the final line — useful when an enclosing pass will print its own summary.

glide
spinner_finish(true,  "built target/my_app");
spinner_finish(false, "compile failed");