POV-Ray : Newsgroups : povray.off-topic : Colour consoles : Re: Colour consoles Server Time
7 Sep 2024 03:20:13 EDT (-0400)
  Re: Colour consoles  
From: Fredrik Eriksson
Date: 20 Aug 2008 10:03:09
Message: <op.uf6uniy17bxctx@e6600>
On Wed, 20 Aug 2008 15:08:37 +0200, Invisible <voi### [at] devnull> wrote:
> Basically, I have a perfectly working console application, but I wish I  
> could just make certain parts of its output come out in a different  
> colour. On Unix, this would be a fairly trivial matter of writing some  
> escape codes to stdout and you're done. On Windoze... well that doesn't  
> work.

NT-based console windows do not support colour escape codes. Only 16-bit  
applications (running under NTVDM) can use colour escapes.


> I wonder... Is there some function call in the Win32 API that can  
> actually change the colour of the text in a console window?

http://msdn.microsoft.com/en-us/library/ms682088.aspx



-- 
FE


Post a reply to this message

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