|
 |
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
|
 |