Add Phrases::EndFlush

experiment/srcref_basic_cfg
Martchus 5 years ago
parent f35124eff5
commit 4011040e57
  1. 2
      CMakeLists.txt
  2. 4
      io/ansiescapecodes.cpp
  3. 1
      io/ansiescapecodes.h

@ -128,7 +128,7 @@ set(META_APP_AUTHOR "Martchus")
set(META_APP_URL "https://github.com/${META_APP_AUTHOR}/${META_PROJECT_NAME}")
set(META_APP_DESCRIPTION "Common C++ classes and routines used by my applications such as argument parser, IO and conversion utilities")
set(META_VERSION_MAJOR 4)
set(META_VERSION_MINOR 10)
set(META_VERSION_MINOR 11)
set(META_VERSION_PATCH 0)
# find required 3rd party libraries

@ -53,6 +53,10 @@ std::ostream &operator<<(std::ostream &stream, Phrases phrase)
setStyle(stream, TextAttribute::Reset);
setStyle(stream, TextAttribute::Bold);
break;
case Phrases::EndFlush:
setStyle(stream, TextAttribute::Reset);
stream << std::endl;
break;
}
return stream;
}

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

Loading…
Cancel
Save