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 #80741 is a reply to message #80633] Sat, 30 June 2012 14:50 Go to previous message
jdeast is currently offline  jdeast
Messages: 5
Registered: June 2012
Junior Member
Excellent, thanks! It doesn't work from the IDLDE interface in windows, but I'll take it.

(Sorry for the late reply, I had given up.)

Jason

On Wednesday, June 27, 2012 3:21:08 PM UTC-7, alx wrote:
> 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: Sun Oct 12 11:54:20 PDT 2025

Total time taken to generate the page: 0.56182 seconds