Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions test/stressHistoFit.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@
#include <cmath>

#ifdef R__WIN32
#ifndef __CLING__
#define FOREGROUND_BLUE 1
#define FOREGROUND_GREEN 2
#define FOREGROUND_RED 4
Expand All @@ -124,6 +125,7 @@ extern "C" {
}
#pragma comment(lib, "Kernel32.lib")
#endif
#endif

#include "Riostream.h"
using namespace std;
Expand Down Expand Up @@ -511,11 +513,13 @@ void setColor(int red = 0)
snprintf(command,13, "%c[%dm", 0x1B, 0); // reset to default
printf("%s", command);
#else
#ifndef __CLING__
if ( red )
SetConsoleTextAttribute(GetStdHandle((unsigned long)-11), FOREGROUND_RED );
else
SetConsoleTextAttribute(GetStdHandle((unsigned long)-11), FOREGROUND_GREY );
#endif
#endif
}

// Test a fit once it has been done:
Expand Down