Posted February 08, 2013
UPDATE: I reworked the patch a bit: http://pastie.org/6093145 (use this instead of the previous one)
On top of the above changes it includes:
* added color to the progress bar and --no-color option (if you think the color should be off by default - you can just reverse and change it to --color instead and just pass that value). Using vt100 codes for color isn't worse than what is used now for clearing the line. To make it more portable - ncurses can be used.
* instead of "light shade" - put space for empty bars again. It looks better.
* added catching the edge condition on resume, where dlnow and dltotal are both 0.0. Before the bar jumped to 100% and after a few moments to real value. I made it jump from 0% - it's less irritating.
On top of the above changes it includes:
* added color to the progress bar and --no-color option (if you think the color should be off by default - you can just reverse and change it to --color instead and just pass that value). Using vt100 codes for color isn't worse than what is used now for clearing the line. To make it more portable - ncurses can be used.
* instead of "light shade" - put space for empty bars again. It looks better.
* added catching the edge condition on resume, where dlnow and dltotal are both 0.0. Before the bar jumped to 100% and after a few moments to real value. I made it jump from 0% - it's less irritating.
Post edited February 08, 2013 by shmerl