chelnak / ysmrr

YSMRR is a package that provides simple multi-line compatible spinners for Go applications.
MIT License
71 stars 6 forks source link

Enable realtime message updates #41

Closed chelnak closed 1 year ago

chelnak commented 1 year ago

Prior to this PR spinner messages updates were rendered along with the spinner frames.

This PR adds support for realtime message updates by using a non blocking channel to notify the manager that there has been a message update.

When this event is true, only the message is rendered. The spinner frame will remain at its previous position.