POV-Ray : Newsgroups : povray.advanced-users : Status outputting to one line in MegaPov Server Time
2 Nov 2024 03:16:32 EDT (-0400)
  Status outputting to one line in MegaPov (Message 1 to 2 of 2)  
From: Warp
Subject: Status outputting to one line in MegaPov
Date: 8 Nov 2000 05:21:59
Message: <3a092947@news.povray.org>
There are several places where MegaPov prints the same line many times
with a differing value. One example is "Sorting photons..." and another
is "Applying 'soft glow' effect".
  The problem is that it prints a newline ("\n") after each line.
  In Windows this might not be a problem, but in unix it is. It's not nice
to get the console window full of that same line.
  Could it be possible to output a "\r" instead of a "\n" in these lines?
A "\n" could be outputted after the last line if necessary.
  This will make it output nicely to the same line.
  It looks better and saves a bit of resources.

-- 
main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
):_;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/


Post a reply to this message

From: Chris Huff
Subject: Re: Status outputting to one line in MegaPov
Date: 8 Nov 2000 15:57:51
Message: <chrishuff-E15216.15575408112000@news.povray.org>
In article <3a092947@news.povray.org>, Warp <war### [at] tagpovrayorg> 
wrote:

>   Could it be possible to output a "\r" instead of a "\n" in these lines?

It can already do this. Add this line to config.h and recompile:
#define ProgressOnOneLine

-- 
Christopher James Huff
Personal: chr### [at] maccom, http://homepage.mac.com/chrishuff/
TAG: chr### [at] tagpovrayorg, http://tag.povray.org/

<><


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.