POV-Ray : Newsgroups : povray.general : flushing Server Time
18 Nov 2024 11:18:49 EST (-0500)
  flushing (Message 1 to 3 of 3)  
From: Rafal 'Raf256' Maj
Subject: flushing
Date: 31 Aug 2002 06:04:59
Message: <Xns927B7A3F83BF7raf256com@204.213.191.226>
how can I flush #debug stream, so i.e.
#debug "." 
will NOT wait until next "\n" ?

-- 
#macro g(U,V)(.4*abs(sin(9*sqrt(pow(x-U,2)+pow(y-V,2))))*pow(1-min(1,(sqrt(
pow(x-U,2)+pow(y-V,2))*.3)),2)+.9)#end#macro p(c)#if(c>1)#local l=mod(c,100
);g(2*div(l,10)-8,2*mod(l,10)-8)*p(div(c,100))#else 1#end#end light_source{
y 2}sphere{z*20 9pigment{function{p(26252423)*p(36455644)*p(66656463)}}}//M


Post a reply to this message

From: Thorsten Froehlich
Subject: Re: flushing
Date: 31 Aug 2002 06:42:46
Message: <3d709da6@news.povray.org>
In article <Xns### [at] 204213191226>, "Rafal 'Raf256' Maj"
<raf### [at] raf256com> wrote:

> how can I flush #debug stream, so i.e.
> #debug "."
> will NOT wait until next "\n" ?

POV-Ray will always flush the output to a file.  It will never flush the
output to the screen.

    Thorsten

____________________________________________________
Thorsten Froehlich, Duisburg, Germany
e-mail: tho### [at] trfde

Visit POV-Ray on the web: http://mac.povray.org


Post a reply to this message

From: Charles Fusner
Subject: Re: flushing
Date: 2 Sep 2002 20:07:57
Message: <3D73FC8E.4080506@enter.net>
Rafal 'Raf256' Maj wrote:
> how can I flush #debug stream, so i.e.
> #debug "." 
> will NOT wait until next "\n" ?
> 

It sounds as if you want to do some kind of mock "progress bar"
type thing in your #debug stream? That is, something like:

Calculating........

Where the number of dots increases as the calculation progresses?

If so, it's possible the '\r' escape sequence will help. I've used
it to return to the beginning of a line w/o line feed for some
projects, so what you would do is #declare a string (let's call
it "dMessage") containing the string "Calculating.." Each pass
through concat a ".", then do...

#debug concat("\r",dMessage)


-- 
@C[$F];
The Silver Tome ::  http://www.silvertome.com
"You may sing to my cat if you like..."


Post a reply to this message

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