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

Home » Public Forums » archive » Writing to the IDLde
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Writing to the IDLde [message #52549] Tue, 13 February 2007 12:07 Go to previous message
news.verizon.net is currently offline  news.verizon.net
Messages: 47
Registered: August 2003
Member
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. For example, the following
little program will continously display the number of seconds since
the program started:

pro test, x
cr = string(13b)
for i=0,50 do begin
wait,1
print,i,cr,f='($,a,a)'
endfor
end

However, this program only works at a Unix terminal: in the IDLDE (Mac
or Unix), the carriage return can't erase the previous text.
Perhaps, there is some combination of carriage return, linefeed and/or
newline suppression format that works with the IDLde but I couldn't
locate it.

Of course,I could write the output to a text widget, and update/
overwrite using WIDGET_CONTROL as needed. But this would require
fairly major changes ot existing code.

A possibly related question is whether it is possible to display text
to the IDLde using the /MORE option. At a terminal, one can use
openw,lun,filepath(/terminal),/more,/get_lun . I had always assumed
that this wasn't possible to do this in the IDLde, but compiling with
the -t option does give /MORE output.

Thanks, --Wayne
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Is there any way to check running speed?
Next Topic: polygon intersection routine in IDL

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

Current Time: Fri Oct 10 10:54:39 PDT 2025

Total time taken to generate the page: 1.43730 seconds