seregazhuk / php-watcher

Monitor for any changes in your php application and automatically restart it (suitable for async apps).
https://sergeyzhuk.me/2019/10/18/php-watcher/
389 stars 31 forks source link

Improve spinner output #31

Closed seregazhuk closed 5 years ago

seregazhuk commented 5 years ago

Work directly with a cursor instead of using "\r". When reloading a script we should hide the spinner, otherwise part of it stays in the terminal.

seregazhuk commented 5 years ago

Maybe a separate class for cursor manipulations can be extracted 🤔