#include #include /* This is a Windows-specific program. It probably *wont* run under Linux. Might work under Wine, though. */ int main ( void ) { HANDLE h = GetStdHandle ( STD_OUTPUT_HANDLE ); WORD wOldColorAttrs; CONSOLE_SCREEN_BUFFER_INFO csbiInfo; GetConsoleScreenBufferInfo(h, &csbiInfo); wOldColorAttrs = csbiInfo.wAttributes; SetConsoleTextAttribute ( h, FOREGROUND_RED | FOREGROUND_INTENSITY ); printf ( "This is a test\n" ); SetConsoleTextAttribute ( h, wOldColorAttrs); system ("Pause"); return 0; }