Documentation
¶
Overview ¶
Package fps centralizes the optional spinner redraw-rate override so every spinner in Atmos honors a single control.
Spinners default to the bubbles rate. When recording VHS demos, frequent redraws of off-camera spinners can scroll enough to trip VHS's scrollback handling (charmbracelet/vhs#657/#659) and hang the recording. Setting ATMOS_SPINNER_FPS to a lower positive integer slows every spinner; leaving it unset preserves the default for normal interactive use.
Index ¶
Constants ¶
View Source
const EnvVar = "ATMOS_SPINNER_FPS"
EnvVar is the environment variable that overrides the spinner redraw rate (frames per second).
View Source
const MaxFPS = 60
MaxFPS bounds the override so a bad value can't busy-loop the renderer.
Variables ¶
This section is empty.
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.