53 enum Colour {DEFAULT_COLOR=0, BLACK, GRAY, RED, GREEN, YELLOW, BLUE, PURPLE, CYAN, WHITE};
55 enum Style {NO_STYLE=0, ITALIC=1, BOLD=2, DIM=4, REVERSE=8};
57 enum Line {NO_LINE=0, UNDERLINE=1, DOUBLE_UNDERLINE=2, OVERLINE=4};
59 enum Control {RESET=0};
66 std::set<Style> style;
71 template <
typename ... T>
73 void set(Control ctrl,
const T &... args) {
74 if (ctrl == Control::RESET){
84 template <
typename ... T>
86 void set(
const T &... args) {
93 template <
typename T,
typename ... TT>
95 void add(
const T & arg,
const TT &... args) {
104 colour = Colour::DEFAULT_COLOR;
105 line = Line::NO_LINE;
117 void _add(
const Colour & c){
122 void _add(
const Line & l){
127 void _add(
const Style & s){
Utility for scanning text segments.
Definition TextStyle.h:49