I've seen many programs -- eg Yum, Fsck, RPM, etc that will output progress bars during their run. Although, it's dynamic text -- It's not like
1% [program returns, waits a few seconds, and outputs the new value]
7.6% [same thing]
It's one line that changes to the new value. Any tips on how to make these?
And, for a bonus, does anyone know how to take their values and use them for a GUI like YumEx does? I know how PyGTK works, I just need how to retrieve these values. I've tried looking at it's source, but couldn't find it.