Add phrase for overriding current line
This commit is contained in:
parent
76ee4a158b
commit
8bc3cf9615
|
@ -86,6 +86,10 @@ std::ostream &operator<<(std::ostream &stream, Phrases phrase)
|
|||
setStyle(stream, TextAttribute::Reset);
|
||||
setStyle(stream, TextAttribute::Bold);
|
||||
break;
|
||||
case Phrases::Override:
|
||||
eraseLine(stream);
|
||||
stream << '\r';
|
||||
break;
|
||||
}
|
||||
return stream;
|
||||
}
|
||||
|
|
|
@ -141,6 +141,7 @@ enum class Phrases {
|
|||
WarningMessage, /**< bold, yellow "==> WARNING: " */
|
||||
EndFlush, /**< resets the style and flushes the stream */
|
||||
Info, /**< bold, blue "Info: " */
|
||||
Override, /**< erases the current line */
|
||||
};
|
||||
CPP_UTILITIES_EXPORT std::ostream &operator<<(std::ostream &stream, Phrases phrase);
|
||||
|
||||
|
|
Loading…
Reference in New Issue