jmac555
11-16-2008, 12:06 AM
I was recently writing a program for windows that implemented a colored output, done with code:
void setcolor(unsigned short color) //The function that you'll use to
{ //set the colour
HANDLE hcon = GetStdHandle(STD_OUTPUT_HANDLE);
SetConsoleTextAttribute(hcon,color);
}
now i plan to port this program across to Macintosh using xCode but there doesn't appear to be an include file that allows me to do so.
Any suggestions?
b.t.w my include files
#include <iostream>
#include <time.h>
#include <cstdlib>
#include <windows.h>
void setcolor(unsigned short color) //The function that you'll use to
{ //set the colour
HANDLE hcon = GetStdHandle(STD_OUTPUT_HANDLE);
SetConsoleTextAttribute(hcon,color);
}
now i plan to port this program across to Macintosh using xCode but there doesn't appear to be an include file that allows me to do so.
Any suggestions?
b.t.w my include files
#include <iostream>
#include <time.h>
#include <cstdlib>
#include <windows.h>