Styled text element for terminal output with ANSI color support.
Text(std::string text)
Construct a Text with the given string and default style.
friend std::ostream & operator<<(std::ostream &os, const Text &val)
Output the styled text to an output stream. Outputs the style, followed by the text content,...
Text()
Default constructor. Creates an empty text with default style.
Text & style(Style style)
Set the style for this text.
Text(std::string text, Style style)
Construct a Text with the given string and style.
Text & text(std::string text)
Set the text content.