× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



In the past I have used SNDPGMMSG to put a message at the bottom of the screen. In the variable text I simply output a string full of ">" characters as I recall. Each time I go to re-display the message, append another ">" character to the string before displaying. I think I delayed 2 seconds between but as I was waiting for something in another job to finish I had the luxury of simply testing for completion and if not done add another character, re-display, wait some more. If your CL is doing the actual work then you can only update the display between breaks in that work and since I have no idea what that is, I don't know if this technique is useful to you.

- Larry "DrFranken" Bolhuis


On 8/29/2011 5:04 PM, Timothy Adair wrote:
Has anyone found a way to do a simple progress bar in CL? I have a
long-running interactive CL (please don't ask why) and I want to keep the
user informed of the progress. It could be a bar, or just a simple percent
count-up. I've searched the archives and the only thing I found was Booth
Martin's RPG progress bar. A neat piece of work but it doesn't fit my
needs. I'm currently using ten SNDPGMMSG commands (10%, 20%, etc.)
sprinkled throughout the code. Clunky, but somewhat functional.

Maybe I'm dreaming but...
If CL issues (or receives) a return code for every command executed, is
there a way to trigger something after each command, regardless of the
return code? Pretty vague, I know. Sorry about that.

As always, any and all responses are appreciated.

~TA~


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.