POV-Ray : Newsgroups : povray.beta-test : #debug stream and \n : Re: #debug stream and \n Server Time
29 Jul 2024 12:28:35 EDT (-0400)
  Re: #debug stream and \n  
From: Warp
Date: 18 Mar 2004 05:42:30
Message: <40597d16@news.povray.org>
Thorsten Froehlich <tho### [at] trfde> wrote:
> > Currently both the new line (\n) and the carriage return (\r) give the same
> > result.

> Yes, this is correct.  \r only makes sense on a terminal, not anywhere else.
> In particular it never made sense to use \r when writing output to file.

  The messages window in WinPOV can be considered a "terminal", so it should
work as expected there (if it doesn't (I haven't tested), I think it should
be fixed). The raytracer made with SDL uses \r to print progress information
in a single line and it would certainly look bad if each update would be
printed in a new line...

  And by the way, I'm liking the idea of lines printed with #debug having
a different color than the other lines in the messages window (and in the
output of the unix version if the output is an ANSI terminal). Any chance
this could be done?

-- 
#macro M(A,N,D,L)plane{-z,-9pigment{mandel L*9translate N color_map{[0rgb x]
[1rgb 9]}scale<D,D*3D>*1e3}rotate y*A*8}#end M(-3<1.206434.28623>70,7)M(
-1<.7438.1795>1,20)M(1<.77595.13699>30,20)M(3<.75923.07145>80,99)// - Warp -


Post a reply to this message

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