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

Home » Public Forums » archive » Re: Writing to the IDLde
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: Writing to the IDLde [message #52541] Wed, 14 February 2007 01:13 Go to next message
Ben Panter is currently offline  Ben Panter
Messages: 102
Registered: July 2003
Senior Member
R.G. Stockwell wrote:

> 2) create a new procedure like "printstatus" that does what you want,
> and then globally search and replace all your print functions.

As I understand it that's the point of the query - such a procedure
appears to be impossible in the IDLDE. I have lots of processes that
include long iterative calculations, and having a %age done line that
doesn't destroy the whole log would be great - in fact, even being able
to run successive print statements on the same line rather than a new
line would help.

At the moment I just have a test that prints i if i mod X is 0, where i
is the iteration number and X is the frequency at which I want to know
what it's up to. Far from ideal though...

Ben

--
Ben Panter, Edinburgh, UK.
Email false, http://www.benpanter.co.uk
or you could try ben at ^^^^^^^^^^^^^^^
Re: Writing to the IDLde [message #52547 is a reply to message #52541] Tue, 13 February 2007 13:45 Go to previous messageGo to next message
news.qwest.net is currently offline  news.qwest.net
Messages: 137
Registered: September 2005
Senior Member
"Wayne Landsman" <vze49sx6@verizon.net> wrote in message
news:1171397251.440417.254980@v33g2000cwv.googlegroups.com.. .
> This message will reveal me as a dinosaur, but I am still trying to
> maintain programs that display output to a terminal, continuously
> overwriting the previous result.

A couple of ideas:
1) just print to the IDLDE, who cares old lines scroll up and away.
The last line will always be what you last printed, and it
will almost look like it is replacing. The advantage is that you
have to change nothing.
This to me sounds like when a client wants something done, and
I have to tell them what they really want done. :)

2) create a new procedure like "printstatus" that does what you want,
and then globally search and replace all your print functions.

Cheers,
bob
Re: Writing to the IDLde [message #52683 is a reply to message #52541] Wed, 14 February 2007 08:21 Go to previous message
news.qwest.net is currently offline  news.qwest.net
Messages: 137
Registered: September 2005
Senior Member
"Ben Panter" <me@privacy.net> wrote in message
news:53g26cF1so8jfU1@mid.individual.net...
> R.G. Stockwell wrote:
>
>> 2) create a new procedure like "printstatus" that does what you want,
>> and then globally search and replace all your print functions.
>
> As I understand it that's the point of the query - such a procedure
> appears to be impossible in the IDLDE. I have lots of processes that
> include long iterative calculations, and having a %age done line that
> doesn't destroy the whole log would be great - in fact, even being able to
> run successive print statements on the same line rather than a new line
> would help.
>
> At the moment I just have a test that prints i if i mod X is 0, where i is
> the iteration number and X is the frequency at which I want to know what
> it's up to. Far from ideal though...
>
> Ben

Right, I agree that you cannot do it to the IDE window.
What I meant was to have a function that did some
appropriate solution, such as a "progress" widget like
Dave Fanning's. Or one could make a graphics window
and xyout the message.

One can erase the window then make the new message,
or rewrite the old message in the background color (thereby
'erasing' it) and write the new message in the foreground color.
There are a lot of possibilites, and it should be very straightforward
to implement. If not, perhaps the OP can elaborate on what the problem is.

Cheers,
bob
Re: Writing to the IDLde [message #52685 is a reply to message #52541] Wed, 14 February 2007 06:27 Go to previous message
Kenneth Bowman is currently offline  Kenneth Bowman
Messages: 86
Registered: November 2006
Member
In article <53g26cF1so8jfU1@mid.individual.net>, Ben Panter <me@privacy.net>
wrote:

> R.G. Stockwell wrote:
>
>> 2) create a new procedure like "printstatus" that does what you want,
>> and then globally search and replace all your print functions.
>
> As I understand it that's the point of the query - such a procedure
> appears to be impossible in the IDLDE. I have lots of processes that
> include long iterative calculations, and having a %age done line that
> doesn't destroy the whole log would be great - in fact, even being able
> to run successive print statements on the same line rather than a new
> line would help.
>
> At the moment I just have a test that prints i if i mod X is 0, where i
> is the iteration number and X is the frequency at which I want to know
> what it's up to. Far from ideal though...
>
> Ben

You could try David's showprogress widget

http://www.dfanning.com/widget_tips/show_progress.html

Ken Bowman
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: remove duplicates WITHOUT sorting
Next Topic: IDLanROI::ContainsPoints when TYPE = 0 (points)

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

Current Time: Wed Oct 08 12:48:47 PDT 2025

Total time taken to generate the page: 0.00575 seconds