Add Phrases::InfoMessage

This commit is contained in:
Martchus 2019-11-17 22:26:13 +01:00
parent 4e3393ee72
commit 83180119c2
2 changed files with 7 additions and 0 deletions

View File

@ -104,6 +104,12 @@ std::ostream &operator<<(std::ostream &stream, Phrases phrase)
setStyle(stream, TextAttribute::Reset);
setStyle(stream, TextAttribute::Bold);
break;
case Phrases::InfoMessage:
setStyle(stream, Color::White, ColorContext::Foreground, TextAttribute::Bold);
stream << "==> ";
setStyle(stream, TextAttribute::Reset);
setStyle(stream, TextAttribute::Bold);
break;
}
return stream;
}

View File

@ -147,6 +147,7 @@ enum class Phrases {
Override, /**< erases the current line */
SubError, /**< bold, red " -> ERROR: " */
SubWarning, /**< bold, yellow " -> WARNING: " */
InfoMessage, /**< bold, white "==> " */
};
CPP_UTILITIES_EXPORT std::ostream &operator<<(std::ostream &stream, Phrases phrase);