I know I can set the steam to store the output. But sometimes people wants to get the progress bar as a string. So they can handle it by themselves. For example: I want to draw a multi progress bar. I will maintain a progress bar array. print all the progress bars in the same time.
So I splited the function: tick into two functions "increase" and "toString"
You can take a look my code. It's not too much changes. And it can keep the old tick work correctly. But this change can give this lib new ability to give user current status manually.
If you think the function name is not good you can change it whatever you want.
refacted progress lib.
- splited tick to two functions:
also. I changed the version from 0.0.4 to 0.0.5. But I don't modify the History file. You can edit that by yourself :D
this has to be updated and merged back with the current master, will eventually clean up if we don't receive any updates
Dupe of #35