1
0
mirror of https://github.com/catchorg/Catch2.git synced 2025-03-28 21:34:46 +01:00

Don't use ANSI colour codes when debugging

This commit is contained in:
Phil Nash 2013-02-18 13:02:49 +00:00
parent 707c97ed3e
commit dbcd833c72

@ -32,7 +32,7 @@ namespace Catch {
namespace { const char colourEscape = '\033'; }
void TextColour::set( Colours colour ) {
if( isatty( fileno(stdout) ) ) {
if( isatty( fileno(stdout) ) && !isDebuggerActive() ) {
switch( colour ) {
case TextColour::FileName:
std::cout << colourEscape << "[0m"; // white/ normal