Progmasoft Git

catch3

Progmasoft Catch3: an independently maintained C++17 test framework with a parallel runner, property checks, snapshots and structured results.

Clonegit clone https://git.progmasoft.com/catch3

Don't use ANSI colour codes when debugging

Commit
dbcd833c724dee84b70154e3d55213042dd639ff
Author
Phil Nash ·
Parents
707c97ed3e7f

Files · Download .tar.gz

Changes

 include/internal/catch_console_colour_impl.hpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/internal/catch_console_colour_impl.hpp b/include/internal/catch_console_colour_impl.hpp
index c05fd07f..340628d6 100644
--- a/include/internal/catch_console_colour_impl.hpp
+++ b/include/internal/catch_console_colour_impl.hpp
@@ -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