comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: PRINT on same line
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: PRINT on same line [message #32769] Tue, 12 November 2002 06:36
David Fanning is currently offline  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
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Convolution, IDL & Numerical Recipes
Next Topic: Re: 3D Matrix

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 19:44:12 PDT 2025

Total time taken to generate the page: 0.00439 seconds