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

Home » Public Forums » archive » Re: overwrite output to screen; unix vs windows
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: overwrite output to screen; unix vs windows [message #80633] Wed, 27 June 2012 15:21 Go to previous message
lecacheux.alain is currently offline  lecacheux.alain
Messages: 325
Registered: January 2008
Senior Member
On 27 juin, 18:59, jde...@gmail.com wrote:
> Thanks for your help everyone.
>
> @David: I just looked at the 12 files and the widgets and it seemed like too much. Did I miss something? Are there 3 lines I can extract from those codes that do this in the terminal? This is just a minor annoyance for a minority of users, and not worth requiring an additional library and adding a GUI to my otherwise command-line only code.
>
> @Gianguido: that routine has the same problem as mine. Works in unix, not in Windows.
>
> @alx: can that be broken up into separate commands which get executed at each cycle in a for loop?
>
> I tried
>
> print, 0, format='(t1,i4,$)' & print, 1, format='(t1,i4,$)' & print
>
> but that doesn't work in unix or windows. This:
>
> print, 0, format='(t1,i4,$,"' + string(13b) + '")' & print, 1, format='(t1,i4,$)' & print
>
> works in unix, but not windows.
>
> Thanks,
> Jason
>
>

I am not aware of "overwrite" format in IDL FORTRAN formats.
But you might achieve your goal by mixing with IDL C-style formats.
For instance, doing the following code in a Windows command window, I
can overwrite on a same output line all the 11 numbers, one per
second.

IDL> .run
- for i=0,10 do begin
- print,i,FORMAT='(%"\b%d",$)'
- wait,1
- endfor
- print
- end
% Compiled module: $MAIN$.
10
IDL>

%" ... " are delimiters for C-style format; \b is the escape code for
backspace.
Please refer to the documentation.

alain.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: writing equation in IDL
Next Topic: Dropped dimensions?

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

Current Time: Fri Oct 10 17:07:53 PDT 2025

Total time taken to generate the page: 0.96061 seconds