Re: PRINT on same line [message #32769] |
Tue, 12 November 2002 06:36 |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
trouble (the_cacc@hotmail.com) writes:
> I would like to know if anyone has a command which prints a string
> that overwrites the current line. The purpose is to update users what
> is going on during processing without producing a screen full of:
>
> Processing data set 1
> Processing data set 2
> ...
>
> which is what PRINT,'Processing data set',i does. I think it must be
> possible after hacking through rdpix.pro, but I can't figure out how
> to do it :(
If you search the Google IDL newsgroup archives with
something like "overwrite current line print", you will
probably come up with a couple of methods.
You can also change the text on my progress bar, which
gives the folks something interesting to watch besides
text:
progressbar -> Update, percent, Text='Processing data set 1'
progressbar -> Update, 2*percent, Text='Processing data set 2'
You can find the code here:
htp://www.dfanning.com/programs/progressbar__define.pro
There is an example program at the bottom of the code, so
you can see how it works.
Cheers,
David
--
David W. Fanning, Ph.D.
Fanning Software Consulting, Inc.
Phone: 970-221-0438, E-mail: david@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
|
|
|