theckman / yacspin

Yet Another CLi Spinner; providing over 80 easy to use and customizable terminal spinners for multiple OSes
Apache License 2.0
434 stars 13 forks source link

Add support for non-TTY output targets #48

Closed theckman closed 2 years ago

theckman commented 2 years ago

This change introduces better handling of non-TTY output targets. Specifically, the spinner animation is disabled and the lines aren't erased. In the Non-TTY mode, the spinner is only animated on each update to the spinner data (e.g., message). In addition, this does not erase the line when rendering and instead renders the animation on a new line.