[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Overwriting printings



In article <395214A5.BA0D21B1@mathstat.dal.ca>,
  simon@mathstat.dal.ca wrote:

> Is there a way to get IDL to overwrite the previous print output,
> ratherthan starting a new line? I'm running IDL in Linux..

the `$' format character disables the automatic newline,
the character control-k kill the current output line.
Use something like this:

for i=1,1000 do begin
    print,format='(A,A,$)',string(13b),string(i)
endfor
print,''   ; terminate the current line


-Carsten


Sent via Deja.com http://www.deja.com/
Before you buy.