1. How to Implement a PHP CLI Progress Indicator by Animating the Cursors While a PHP Task in Running
Updated on: 2021-07-21
Posted on: 2021-07-21
Sometimes applications need to execute tasks that take a long time to finish. It is always good to provide feedback to the users to let them know what is happening, avoiding that the users become too anxious.
For console-based applications, usually, a cursor may appear blinking, but that does not give feedback on whether the current application is running well.
This package implements a better solution by showing the cursor changing its character, so it appears to be animated. This can give the users a better feeling by letting them know that the application is running.
The package implements a solution that uses a parallel process to animate the cursor character, so the application does not have to stop its main job to update the cursor animation.
More ...
Post a comment
See comments (0) Trackbacks (0)
For console-based applications, usually, a cursor may appear blinking, but that does not give feedback on whether the current application is running well.
This package implements a better solution by showing the cursor changing its character, so it appears to be animated. This can give the users a better feeling by letting them know that the application is running.
The package implements a solution that uses a parallel process to animate the cursor character, so the application does not have to stop its main job to update the cursor animation.


