diff --git a/io/ansiescapecodes.cpp b/io/ansiescapecodes.cpp index e42ff33..527547b 100644 --- a/io/ansiescapecodes.cpp +++ b/io/ansiescapecodes.cpp @@ -65,13 +65,13 @@ std::ostream &operator<<(std::ostream &stream, Phrases phrase) setStyle(stream, TextAttribute::Bold); break; case Phrases::ErrorMessage: - setStyle(stream, Color::Green, ColorContext::Foreground, TextAttribute::Bold); + setStyle(stream, Color::Red, ColorContext::Foreground, TextAttribute::Bold); stream << "==> ERROR: "; setStyle(stream, TextAttribute::Reset); setStyle(stream, TextAttribute::Bold); break; case Phrases::WarningMessage: - setStyle(stream, Color::Green, ColorContext::Foreground, TextAttribute::Bold); + setStyle(stream, Color::Yellow, ColorContext::Foreground, TextAttribute::Bold); stream << "==> WARNING: "; setStyle(stream, TextAttribute::Reset); setStyle(stream, TextAttribute::Bold); diff --git a/io/ansiescapecodes.h b/io/ansiescapecodes.h index a90c9bb..3d25239 100644 --- a/io/ansiescapecodes.h +++ b/io/ansiescapecodes.h @@ -46,7 +46,7 @@ inline void setStyle(std::ostream &stream, Color foregroundColor, Color backgrou { if (enabled) { stream << '\e' << '[' << static_cast(displayAttribute) << ';' << static_cast(ColorContext::Foreground) - << static_cast(foregroundColor) << ';' << static_cast(ColorContext::Foreground) << static_cast(backgroundColor) + << static_cast(foregroundColor) << ';' << static_cast(ColorContext::Background) << static_cast(backgroundColor) << 'm'; } }