37 #include <OpenMS/config.h> 156 static bool isTTY(
const std::ostream& stream);
160 void outputToStream_(std::ostream& o_stream);
163 static void colorStream_(std::ostream& stream,
const char* ANSI_command);
174 bool undo_all_ =
true;
178 bool undos_only =
false;
208 inline static const constexpr std::array<ColorWithUndo_, 9> colors_ {
219 const char* color_undo_all_ =
"\033[0m";
keeps the foreground color, but makes it brighter
ConsoleColor
Text colors/styles supported by Colorizer.
Definition: Colorizer.h:46
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:47
std::ostream & operator<<(std::ostream &os, const AccurateMassSearchResult &amsr)
void setInternalChars_(const std::string &data)
Definition: Colorizer.h:190
const ConsoleColor color_
color of the stream (const; set in C'tor)
Definition: Colorizer.h:166
Colorizer & operator()()
Definition: Colorizer.h:121
const char * enable
ANSI code to activate the color/style.
Definition: Colorizer.h:201
std::stringstream input_
Definition: Colorizer.h:223
Color and style the fonts shown on cout/cerr (or other streams)
Definition: Colorizer.h:96
Definition: Colorizer.h:199
Class for writing data which spans multiple lines with an indentation for each line (all except the f...
Definition: IndentedStream.h:61
const char * disable
ANSO code to undo the color/style.
Definition: Colorizer.h:202
const std::stringstream & getInternalChars_() const
Definition: Colorizer.h:182
invert foreground and background color (inverting twice stays inverted)
Colorizer & operator()(T s)
Definition: Colorizer.h:134