POV-Ray : Newsgroups : povray.off-topic : Colour consoles : Re: Colour consoles Server Time
7 Sep 2024 11:25:41 EDT (-0400)
  Re: Colour consoles  
From: Invisible
Date: 21 Aug 2008 03:49:21
Message: <48ad1e01@news.povray.org>
Mike Raiford wrote:

> Yes, there is:
> 
> #include "stdio.h"
> #include "windows.h"
> 
> void main()
> {
>     HANDLE hCon = GetStdHandle(STD_OUTPUT_HANDLE);
>     SetConsoleTextAttribute(hCon, 0x0C);
>     printf("Hello in red");
>     SetConsoleTextAttribute(hCon, 0x09);
>     printf(" and in blue\n");
>     getchar();
> }
> 
> Detailed here:
> http://msdn.microsoft.com/en-us/library/ms686047.aspx

Yah, that works.

-- 
http://blog.orphi.me.uk/
http://www.zazzle.com/MathematicalOrchid*


Post a reply to this message

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