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 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: printing without a return [message #2967] Wed, 19 October 1994 05:32
tribbey is currently offline  tribbey
Messages: 5
Registered: October 1994
Junior 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).
|>
|> Thanks,
|>
|> Peter
|>
|> --
|> --------------------------------
|> Peter Webb, HP Labs Medical Dept
|> E-Mail: peter_webb@hpl.hp.com
|> Phone: (415) 813-3756


I just tried a $ in a format with a TLnn and it seems to do what you want.

Will Tribbey
Biomedical Imaging Center
University of Tennessee Medical Center at Knoxville
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
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Streamlines with IDL?
Next Topic: CALL_EXTERNAL and VAX/VMS

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

Current Time: Fri Oct 10 09:53:20 PDT 2025

Total time taken to generate the page: 0.55872 seconds