a size-intelligent progress bar?
Tom Chance
tomchance at gmx.net
Wed Apr 9 13:20:02 EDT 2003
Hullo,
I'm making a shell-based program that includes a progress bar (like wget's
one). At the moment, I've got it printing an equals sign every 2% so I get
a progress bar 50 "="s wide, which fits my Konsole perfectly. This isn't
very handy for other shell sizes though :)
Does anyone have, or can anyone point me in the direction of a way of making
a decent progress bar that will automagically detect the width of the shell
open, even resizing it mid-"progress"?
Cheers in advance,
Tom
More information about the Python-list
mailing list