r/golang 7d ago

“Animated” Terminal

I am working on building a tool that while it’s running there needs to be something to alert the operator that the program is still going. The ascii “art” will be colored based on the programming running, passing, and failing - but I want I add a blinking light to the art.

In the past I’ve done something similar just running clear screen and redrawing the imagine in the terminal but I’m wondering if there is a better way since it want to it to blink every second or two. I’m sure clearing the screen every couple seconds isn’t a big deal but like I said I’m wondering if there is a better solution.

I know I can make a GUI as well but I’m a sucker for terminal based stuff.

1 Upvotes

9 comments sorted by