Add phrase for overriding current line

consistent_macro_prefix
Martchus 5 years ago
parent 76ee4a158b
commit 8bc3cf9615
  1. 4
      io/ansiescapecodes.cpp
  2. 1
      io/ansiescapecodes.h

@ -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…
Cancel
Save