in reply to Progress Bar

If you are looking for a really simple solution (like something that would run from a command line) then you can use a bar graph terminated with a "\r" ready for the next bar graph to overwrite it. So you'd get something like
[---+---|---+---|---+---|---+---] 0% [XXX+---|---+---|---+---|---+---] 10% [XXXXXXXXXXXX---|---+---|---+---] 37% [XXXXXXXXXXXXXXXX---+---|---+---] 50% [XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX-] 97%
I'm sure printf ( "%2d" .. ) and the x operator would come in handy to implement that. For something a little classier, Ovid's suggestion of curses will work great.

--t. alex

"Excellent. Release the hounds." -- Monty Burns.

Replies are listed 'Best First'.
Re: Re: Progress Bar
by jrm (Novice) on Jan 09, 2002 at 08:15 UTC
    Many thanks Ovid and talexb for 2 helpful replies.

    After some thought I have gone for the Curses option, (a good excuse to learn Curses ?).

    A quick attempt at the %age worked well, and once I spotted the endwin() function I was happy.

    There does, however, seem to be a lack of perl-specific-Curses documentation...

    Thanks again
    jrm