Browse Source

Add phrase for info

experiment/improve_get_date_part
Martchus 4 years ago
parent
commit
fe3929c340
  1. 6
      io/ansiescapecodes.cpp
  2. 1
      io/ansiescapecodes.h

6
io/ansiescapecodes.cpp

@ -80,6 +80,12 @@ std::ostream &operator<<(std::ostream &stream, Phrases phrase)
setStyle(stream, TextAttribute::Reset);
stream << std::endl;
break;
case Phrases::Info:
setStyle(stream, Color::Blue, ColorContext::Foreground, TextAttribute::Bold);
stream << "Info: ";
setStyle(stream, TextAttribute::Reset);
setStyle(stream, TextAttribute::Bold);
break;
}
return stream;
}

1
io/ansiescapecodes.h

@ -132,6 +132,7 @@ enum class Phrases {
ErrorMessage, /**< bold, red "==> ERROR: " */
WarningMessage, /**< bold, yellow "==> WARNING: " */
EndFlush, /**< resets the style and flushes the stream */
Info, /**< bold, blue "Info: " */
};
CPP_UTILITIES_EXPORT std::ostream &operator<<(std::ostream &stream, Phrases phrase);

Loading…
Cancel
Save