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

Home » Public Forums » archive » Re: printing without a return
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: printing without a return [message #2973 is a reply to message #2967] Tue, 18 October 1994 17:47 Go to previous message
landsman is currently offline  landsman
Messages: 93
Registered: August 1991
Member
In article <CxvxIF.EqC@hpl.hp.com>, peter@hpl.hp.com (Peter Webb) writes...
> Does anybody know of a way to overprint in IDL? That is, I want to
> print out a value, then back up to the first column on the same line and
> print over the value. The more obvious FORMAT statements don't seem to
> do the trick (with $ you can prevent the linefeed, but you can't back up

Before IDL V3.6, one could overwrite a line in IDL using a carriage return
(=string("15b)) and a "$" in the format statement, as in the following

pro testb
cr = string("15b)
for i=0,20 do begin
print,i,cr,f='($,i6,a)' & wait,0.2
endfor

But in IDL V3.6, the above code no longer works and one has to place the
carriage return at the *beginning* of the line.

for i=0,20 do begin
print,cr,i,f='($,a,i6)' & wait,0.2
endfor

Note that the procedure RDPIX in the standard IDL User's library needs the
above fix in V3.6. The above statements apply to VMS and Unix. I know
the first method above didn't work for Mac IDL V3.5 -- I haven't installed
V3.6 on the Mac yet to see what happens.

--Wayne Landsman landsman@stars.gsfc.nasa.gov
[Message index]
 
Read Message
Read Message
Previous Topic: Re: Streamlines with IDL?
Next Topic: CALL_EXTERNAL and VAX/VMS

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

Current Time: Sun Oct 12 06:54:24 PDT 2025

Total time taken to generate the page: 0.80175 seconds