mirror of
https://github.com/catchorg/Catch2.git
synced 2025-06-03 02:17:54 +00:00
Don't use ANSI colour codes when debugging
This commit is contained in:
parent
707c97ed3e
commit
dbcd833c72
1 changed files with 1 additions and 1 deletions
|
@ -32,7 +32,7 @@ namespace Catch {
|
||||||
namespace { const char colourEscape = '\033'; }
|
namespace { const char colourEscape = '\033'; }
|
||||||
|
|
||||||
void TextColour::set( Colours colour ) {
|
void TextColour::set( Colours colour ) {
|
||||||
if( isatty( fileno(stdout) ) ) {
|
if( isatty( fileno(stdout) ) && !isDebuggerActive() ) {
|
||||||
switch( colour ) {
|
switch( colour ) {
|
||||||
case TextColour::FileName:
|
case TextColour::FileName:
|
||||||
std::cout << colourEscape << "[0m"; // white/ normal
|
std::cout << colourEscape << "[0m"; // white/ normal
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue