Classes | Namespaces | Enumerations | Functions
color.h File Reference
#include "format.h"

Go to the source code of this file.

Classes

struct  rgb
 
struct  internal::color_type
 
union  internal::color_type::color_union
 
class  text_style
 
struct  internal::ansi_color_escape< Char >
 
struct  internal::is_string< std::FILE * >
 
struct  internal::is_string< const std::FILE * >
 

Namespaces

 internal
 

Enumerations

enum  color : uint32_t {
  color::alice_blue = 0xF0F8FF, color::antique_white = 0xFAEBD7, color::aqua = 0x00FFFF, color::aquamarine = 0x7FFFD4,
  color::azure = 0xF0FFFF, color::beige = 0xF5F5DC, color::bisque = 0xFFE4C4, color::black = 0x000000,
  color::blanched_almond = 0xFFEBCD, color::blue = 0x0000FF, color::blue_violet = 0x8A2BE2, color::brown = 0xA52A2A,
  color::burly_wood = 0xDEB887, color::cadet_blue = 0x5F9EA0, color::chartreuse = 0x7FFF00, color::chocolate = 0xD2691E,
  color::coral = 0xFF7F50, color::cornflower_blue = 0x6495ED, color::cornsilk = 0xFFF8DC, color::crimson = 0xDC143C,
  color::cyan = 0x00FFFF, color::dark_blue = 0x00008B, color::dark_cyan = 0x008B8B, color::dark_golden_rod = 0xB8860B,
  color::dark_gray = 0xA9A9A9, color::dark_green = 0x006400, color::dark_khaki = 0xBDB76B, color::dark_magenta = 0x8B008B,
  color::dark_olive_green = 0x556B2F, color::dark_orange = 0xFF8C00, color::dark_orchid = 0x9932CC, color::dark_red = 0x8B0000,
  color::dark_salmon = 0xE9967A, color::dark_sea_green = 0x8FBC8F, color::dark_slate_blue = 0x483D8B, color::dark_slate_gray = 0x2F4F4F,
  color::dark_turquoise = 0x00CED1, color::dark_violet = 0x9400D3, color::deep_pink = 0xFF1493, color::deep_sky_blue = 0x00BFFF,
  color::dim_gray = 0x696969, color::dodger_blue = 0x1E90FF, color::fire_brick = 0xB22222, color::floral_white = 0xFFFAF0,
  color::forest_green = 0x228B22, color::fuchsia = 0xFF00FF, color::gainsboro = 0xDCDCDC, color::ghost_white = 0xF8F8FF,
  color::gold = 0xFFD700, color::golden_rod = 0xDAA520, color::gray = 0x808080, color::green = 0x008000,
  color::green_yellow = 0xADFF2F, color::honey_dew = 0xF0FFF0, color::hot_pink = 0xFF69B4, color::indian_red = 0xCD5C5C,
  color::indigo = 0x4B0082, color::ivory = 0xFFFFF0, color::khaki = 0xF0E68C, color::lavender = 0xE6E6FA,
  color::lavender_blush = 0xFFF0F5, color::lawn_green = 0x7CFC00, color::lemon_chiffon = 0xFFFACD, color::light_blue = 0xADD8E6,
  color::light_coral = 0xF08080, color::light_cyan = 0xE0FFFF, color::light_golden_rod_yellow = 0xFAFAD2, color::light_gray = 0xD3D3D3,
  color::light_green = 0x90EE90, color::light_pink = 0xFFB6C1, color::light_salmon = 0xFFA07A, color::light_sea_green = 0x20B2AA,
  color::light_sky_blue = 0x87CEFA, color::light_slate_gray = 0x778899, color::light_steel_blue = 0xB0C4DE, color::light_yellow = 0xFFFFE0,
  color::lime = 0x00FF00, color::lime_green = 0x32CD32, color::linen = 0xFAF0E6, color::magenta = 0xFF00FF,
  color::maroon = 0x800000, color::medium_aquamarine = 0x66CDAA, color::medium_blue = 0x0000CD, color::medium_orchid = 0xBA55D3,
  color::medium_purple = 0x9370DB, color::medium_sea_green = 0x3CB371, color::medium_slate_blue = 0x7B68EE, color::medium_spring_green = 0x00FA9A,
  color::medium_turquoise = 0x48D1CC, color::medium_violet_red = 0xC71585, color::midnight_blue = 0x191970, color::mint_cream = 0xF5FFFA,
  color::misty_rose = 0xFFE4E1, color::moccasin = 0xFFE4B5, color::navajo_white = 0xFFDEAD, color::navy = 0x000080,
  color::old_lace = 0xFDF5E6, color::olive = 0x808000, color::olive_drab = 0x6B8E23, color::orange = 0xFFA500,
  color::orange_red = 0xFF4500, color::orchid = 0xDA70D6, color::pale_golden_rod = 0xEEE8AA, color::pale_green = 0x98FB98,
  color::pale_turquoise = 0xAFEEEE, color::pale_violet_red = 0xDB7093, color::papaya_whip = 0xFFEFD5, color::peach_puff = 0xFFDAB9,
  color::peru = 0xCD853F, color::pink = 0xFFC0CB, color::plum = 0xDDA0DD, color::powder_blue = 0xB0E0E6,
  color::purple = 0x800080, color::rebecca_purple = 0x663399, color::red = 0xFF0000, color::rosy_brown = 0xBC8F8F,
  color::royal_blue = 0x4169E1, color::saddle_brown = 0x8B4513, color::salmon = 0xFA8072, color::sandy_brown = 0xF4A460,
  color::sea_green = 0x2E8B57, color::sea_shell = 0xFFF5EE, color::sienna = 0xA0522D, color::silver = 0xC0C0C0,
  color::sky_blue = 0x87CEEB, color::slate_blue = 0x6A5ACD, color::slate_gray = 0x708090, color::snow = 0xFFFAFA,
  color::spring_green = 0x00FF7F, color::steel_blue = 0x4682B4, color::tan = 0xD2B48C, color::teal = 0x008080,
  color::thistle = 0xD8BFD8, color::tomato = 0xFF6347, color::turquoise = 0x40E0D0, color::violet = 0xEE82EE,
  color::wheat = 0xF5DEB3, color::white = 0xFFFFFF, color::white_smoke = 0xF5F5F5, color::yellow = 0xFFFF00,
  color::yellow_green = 0x9ACD32
}
 
enum  terminal_color : uint8_t {
  terminal_color::black = 30, terminal_color::red, terminal_color::green, terminal_color::yellow,
  terminal_color::blue, terminal_color::magenta, terminal_color::cyan, terminal_color::white,
  terminal_color::bright_black = 90, terminal_color::bright_red, terminal_color::bright_green, terminal_color::bright_yellow,
  terminal_color::bright_blue, terminal_color::bright_magenta, terminal_color::bright_cyan, terminal_color::bright_white
}
 
enum  emphasis : uint8_t { emphasis::bold = 1, emphasis::italic = 1 << 1, emphasis::underline = 1 << 2, emphasis::strikethrough = 1 << 3 }
 

Functions

FMT_CONSTEXPR text_style fg (internal::color_type foreground) FMT_NOEXCEPT
 
FMT_CONSTEXPR text_style bg (internal::color_type background) FMT_NOEXCEPT
 
FMT_CONSTEXPR text_style operator| (emphasis lhs, emphasis rhs) FMT_NOEXCEPT
 
template<typename Char >
FMT_CONSTEXPR ansi_color_escape< Char > internal::make_foreground_color (internal::color_type foreground) FMT_NOEXCEPT
 
template<typename Char >
FMT_CONSTEXPR ansi_color_escape< Char > internal::make_background_color (internal::color_type background) FMT_NOEXCEPT
 
template<typename Char >
FMT_CONSTEXPR ansi_color_escape< Char > internal::make_emphasis (emphasis em) FMT_NOEXCEPT
 
template<typename Char >
void internal::fputs (const Char *chars, FILE *stream) FMT_NOEXCEPT
 
template<>
void internal::fputs< wchar_t > (const wchar_t *chars, FILE *stream) FMT_NOEXCEPT
 
template<typename Char >
void internal::reset_color (FILE *stream) FMT_NOEXCEPT
 
template<>
void internal::reset_color< wchar_t > (FILE *stream) FMT_NOEXCEPT
 
template<typename S , typename Char = typename internal::char_t<S>::type>
void vprint (std::FILE *f, const text_style &ts, const S &format, basic_format_args< typename buffer_context< Char >::type > args)
 
template<typename String , typename... Args>
std::enable_if< internal::is_string< String >::value >::type print (std::FILE *f, const text_style &ts, const String &format_str, const Args &...args)
 
template<typename String , typename... Args>
std::enable_if< internal::is_string< String >::value >::type print (const text_style &ts, const String &format_str, const Args &...args)
 

Enumeration Type Documentation

enum color : uint32_t
strong
Enumerator
alice_blue 
antique_white 
aqua 
aquamarine 
azure 
beige 
bisque 
black 
blanched_almond 
blue 
blue_violet 
brown 
burly_wood 
cadet_blue 
chartreuse 
chocolate 
coral 
cornflower_blue 
cornsilk 
crimson 
cyan 
dark_blue 
dark_cyan 
dark_golden_rod 
dark_gray 
dark_green 
dark_khaki 
dark_magenta 
dark_olive_green 
dark_orange 
dark_orchid 
dark_red 
dark_salmon 
dark_sea_green 
dark_slate_blue 
dark_slate_gray 
dark_turquoise 
dark_violet 
deep_pink 
deep_sky_blue 
dim_gray 
dodger_blue 
fire_brick 
floral_white 
forest_green 
fuchsia 
gainsboro 
ghost_white 
gold 
golden_rod 
gray 
green 
green_yellow 
honey_dew 
hot_pink 
indian_red 
indigo 
ivory 
khaki 
lavender 
lavender_blush 
lawn_green 
lemon_chiffon 
light_blue 
light_coral 
light_cyan 
light_golden_rod_yellow 
light_gray 
light_green 
light_pink 
light_salmon 
light_sea_green 
light_sky_blue 
light_slate_gray 
light_steel_blue 
light_yellow 
lime 
lime_green 
linen 
magenta 
maroon 
medium_aquamarine 
medium_blue 
medium_orchid 
medium_purple 
medium_sea_green 
medium_slate_blue 
medium_spring_green 
medium_turquoise 
medium_violet_red 
midnight_blue 
mint_cream 
misty_rose 
moccasin 
navajo_white 
navy 
old_lace 
olive 
olive_drab 
orange 
orange_red 
orchid 
pale_golden_rod 
pale_green 
pale_turquoise 
pale_violet_red 
papaya_whip 
peach_puff 
peru 
pink 
plum 
powder_blue 
purple 
rebecca_purple 
red 
rosy_brown 
royal_blue 
saddle_brown 
salmon 
sandy_brown 
sea_green 
sea_shell 
sienna 
silver 
sky_blue 
slate_blue 
slate_gray 
snow 
spring_green 
steel_blue 
tan 
teal 
thistle 
tomato 
turquoise 
violet 
wheat 
white 
white_smoke 
yellow 
yellow_green 

Definition at line 50 of file color.h.

50  : uint32_t {
51  alice_blue = 0xF0F8FF, // rgb(240,248,255)
52  antique_white = 0xFAEBD7, // rgb(250,235,215)
53  aqua = 0x00FFFF, // rgb(0,255,255)
54  aquamarine = 0x7FFFD4, // rgb(127,255,212)
55  azure = 0xF0FFFF, // rgb(240,255,255)
56  beige = 0xF5F5DC, // rgb(245,245,220)
57  bisque = 0xFFE4C4, // rgb(255,228,196)
58  black = 0x000000, // rgb(0,0,0)
59  blanched_almond = 0xFFEBCD, // rgb(255,235,205)
60  blue = 0x0000FF, // rgb(0,0,255)
61  blue_violet = 0x8A2BE2, // rgb(138,43,226)
62  brown = 0xA52A2A, // rgb(165,42,42)
63  burly_wood = 0xDEB887, // rgb(222,184,135)
64  cadet_blue = 0x5F9EA0, // rgb(95,158,160)
65  chartreuse = 0x7FFF00, // rgb(127,255,0)
66  chocolate = 0xD2691E, // rgb(210,105,30)
67  coral = 0xFF7F50, // rgb(255,127,80)
68  cornflower_blue = 0x6495ED, // rgb(100,149,237)
69  cornsilk = 0xFFF8DC, // rgb(255,248,220)
70  crimson = 0xDC143C, // rgb(220,20,60)
71  cyan = 0x00FFFF, // rgb(0,255,255)
72  dark_blue = 0x00008B, // rgb(0,0,139)
73  dark_cyan = 0x008B8B, // rgb(0,139,139)
74  dark_golden_rod = 0xB8860B, // rgb(184,134,11)
75  dark_gray = 0xA9A9A9, // rgb(169,169,169)
76  dark_green = 0x006400, // rgb(0,100,0)
77  dark_khaki = 0xBDB76B, // rgb(189,183,107)
78  dark_magenta = 0x8B008B, // rgb(139,0,139)
79  dark_olive_green = 0x556B2F, // rgb(85,107,47)
80  dark_orange = 0xFF8C00, // rgb(255,140,0)
81  dark_orchid = 0x9932CC, // rgb(153,50,204)
82  dark_red = 0x8B0000, // rgb(139,0,0)
83  dark_salmon = 0xE9967A, // rgb(233,150,122)
84  dark_sea_green = 0x8FBC8F, // rgb(143,188,143)
85  dark_slate_blue = 0x483D8B, // rgb(72,61,139)
86  dark_slate_gray = 0x2F4F4F, // rgb(47,79,79)
87  dark_turquoise = 0x00CED1, // rgb(0,206,209)
88  dark_violet = 0x9400D3, // rgb(148,0,211)
89  deep_pink = 0xFF1493, // rgb(255,20,147)
90  deep_sky_blue = 0x00BFFF, // rgb(0,191,255)
91  dim_gray = 0x696969, // rgb(105,105,105)
92  dodger_blue = 0x1E90FF, // rgb(30,144,255)
93  fire_brick = 0xB22222, // rgb(178,34,34)
94  floral_white = 0xFFFAF0, // rgb(255,250,240)
95  forest_green = 0x228B22, // rgb(34,139,34)
96  fuchsia = 0xFF00FF, // rgb(255,0,255)
97  gainsboro = 0xDCDCDC, // rgb(220,220,220)
98  ghost_white = 0xF8F8FF, // rgb(248,248,255)
99  gold = 0xFFD700, // rgb(255,215,0)
100  golden_rod = 0xDAA520, // rgb(218,165,32)
101  gray = 0x808080, // rgb(128,128,128)
102  green = 0x008000, // rgb(0,128,0)
103  green_yellow = 0xADFF2F, // rgb(173,255,47)
104  honey_dew = 0xF0FFF0, // rgb(240,255,240)
105  hot_pink = 0xFF69B4, // rgb(255,105,180)
106  indian_red = 0xCD5C5C, // rgb(205,92,92)
107  indigo = 0x4B0082, // rgb(75,0,130)
108  ivory = 0xFFFFF0, // rgb(255,255,240)
109  khaki = 0xF0E68C, // rgb(240,230,140)
110  lavender = 0xE6E6FA, // rgb(230,230,250)
111  lavender_blush = 0xFFF0F5, // rgb(255,240,245)
112  lawn_green = 0x7CFC00, // rgb(124,252,0)
113  lemon_chiffon = 0xFFFACD, // rgb(255,250,205)
114  light_blue = 0xADD8E6, // rgb(173,216,230)
115  light_coral = 0xF08080, // rgb(240,128,128)
116  light_cyan = 0xE0FFFF, // rgb(224,255,255)
117  light_golden_rod_yellow = 0xFAFAD2, // rgb(250,250,210)
118  light_gray = 0xD3D3D3, // rgb(211,211,211)
119  light_green = 0x90EE90, // rgb(144,238,144)
120  light_pink = 0xFFB6C1, // rgb(255,182,193)
121  light_salmon = 0xFFA07A, // rgb(255,160,122)
122  light_sea_green = 0x20B2AA, // rgb(32,178,170)
123  light_sky_blue = 0x87CEFA, // rgb(135,206,250)
124  light_slate_gray = 0x778899, // rgb(119,136,153)
125  light_steel_blue = 0xB0C4DE, // rgb(176,196,222)
126  light_yellow = 0xFFFFE0, // rgb(255,255,224)
127  lime = 0x00FF00, // rgb(0,255,0)
128  lime_green = 0x32CD32, // rgb(50,205,50)
129  linen = 0xFAF0E6, // rgb(250,240,230)
130  magenta = 0xFF00FF, // rgb(255,0,255)
131  maroon = 0x800000, // rgb(128,0,0)
132  medium_aquamarine = 0x66CDAA, // rgb(102,205,170)
133  medium_blue = 0x0000CD, // rgb(0,0,205)
134  medium_orchid = 0xBA55D3, // rgb(186,85,211)
135  medium_purple = 0x9370DB, // rgb(147,112,219)
136  medium_sea_green = 0x3CB371, // rgb(60,179,113)
137  medium_slate_blue = 0x7B68EE, // rgb(123,104,238)
138  medium_spring_green = 0x00FA9A, // rgb(0,250,154)
139  medium_turquoise = 0x48D1CC, // rgb(72,209,204)
140  medium_violet_red = 0xC71585, // rgb(199,21,133)
141  midnight_blue = 0x191970, // rgb(25,25,112)
142  mint_cream = 0xF5FFFA, // rgb(245,255,250)
143  misty_rose = 0xFFE4E1, // rgb(255,228,225)
144  moccasin = 0xFFE4B5, // rgb(255,228,181)
145  navajo_white = 0xFFDEAD, // rgb(255,222,173)
146  navy = 0x000080, // rgb(0,0,128)
147  old_lace = 0xFDF5E6, // rgb(253,245,230)
148  olive = 0x808000, // rgb(128,128,0)
149  olive_drab = 0x6B8E23, // rgb(107,142,35)
150  orange = 0xFFA500, // rgb(255,165,0)
151  orange_red = 0xFF4500, // rgb(255,69,0)
152  orchid = 0xDA70D6, // rgb(218,112,214)
153  pale_golden_rod = 0xEEE8AA, // rgb(238,232,170)
154  pale_green = 0x98FB98, // rgb(152,251,152)
155  pale_turquoise = 0xAFEEEE, // rgb(175,238,238)
156  pale_violet_red = 0xDB7093, // rgb(219,112,147)
157  papaya_whip = 0xFFEFD5, // rgb(255,239,213)
158  peach_puff = 0xFFDAB9, // rgb(255,218,185)
159  peru = 0xCD853F, // rgb(205,133,63)
160  pink = 0xFFC0CB, // rgb(255,192,203)
161  plum = 0xDDA0DD, // rgb(221,160,221)
162  powder_blue = 0xB0E0E6, // rgb(176,224,230)
163  purple = 0x800080, // rgb(128,0,128)
164  rebecca_purple = 0x663399, // rgb(102,51,153)
165  red = 0xFF0000, // rgb(255,0,0)
166  rosy_brown = 0xBC8F8F, // rgb(188,143,143)
167  royal_blue = 0x4169E1, // rgb(65,105,225)
168  saddle_brown = 0x8B4513, // rgb(139,69,19)
169  salmon = 0xFA8072, // rgb(250,128,114)
170  sandy_brown = 0xF4A460, // rgb(244,164,96)
171  sea_green = 0x2E8B57, // rgb(46,139,87)
172  sea_shell = 0xFFF5EE, // rgb(255,245,238)
173  sienna = 0xA0522D, // rgb(160,82,45)
174  silver = 0xC0C0C0, // rgb(192,192,192)
175  sky_blue = 0x87CEEB, // rgb(135,206,235)
176  slate_blue = 0x6A5ACD, // rgb(106,90,205)
177  slate_gray = 0x708090, // rgb(112,128,144)
178  snow = 0xFFFAFA, // rgb(255,250,250)
179  spring_green = 0x00FF7F, // rgb(0,255,127)
180  steel_blue = 0x4682B4, // rgb(70,130,180)
181  tan = 0xD2B48C, // rgb(210,180,140)
182  teal = 0x008080, // rgb(0,128,128)
183  thistle = 0xD8BFD8, // rgb(216,191,216)
184  tomato = 0xFF6347, // rgb(255,99,71)
185  turquoise = 0x40E0D0, // rgb(64,224,208)
186  violet = 0xEE82EE, // rgb(238,130,238)
187  wheat = 0xF5DEB3, // rgb(245,222,179)
188  white = 0xFFFFFF, // rgb(255,255,255)
189  white_smoke = 0xF5F5F5, // rgb(245,245,245)
190  yellow = 0xFFFF00, // rgb(255,255,0)
191  yellow_green = 0x9ACD32 // rgb(154,205,50)
192 }; // enum class color
unsigned int uint32_t
Definition: stdint.h:126
enum emphasis : uint8_t
strong
Enumerator
bold 
italic 
underline 
strikethrough 

Definition at line 213 of file color.h.

213  : uint8_t {
214  bold = 1,
215  italic = 1 << 1,
216  underline = 1 << 2,
217  strikethrough = 1 << 3
218 }; // enum class emphasis
unsigned char uint8_t
Definition: stdint.h:124
enum terminal_color : uint8_t
strong
Enumerator
black 
red 
green 
yellow 
blue 
magenta 
cyan 
white 
bright_black 
bright_red 
bright_green 
bright_yellow 
bright_blue 
bright_magenta 
bright_cyan 
bright_white 

Definition at line 194 of file color.h.

Function Documentation

Definition at line 381 of file color.h.

381  {
382  return text_style(/*is_foreground=*/false, background);
383 }

Definition at line 377 of file color.h.

377  {
378  return text_style(/*is_foreground=*/true, foreground);
379 }
FMT_CONSTEXPR text_style operator| ( emphasis  lhs,
emphasis  rhs 
)

Definition at line 385 of file color.h.

385  {
386  return text_style(lhs) | rhs;
387 }
template<typename String , typename... Args>
std::enable_if<internal::is_string<String>::value>::type print ( std::FILE *  f,
const text_style ts,
const String format_str,
const Args &...  args 
)

Formats a string and prints it to the specified file stream using ANSI escape sequences to specify text formatting. Example: fmt::print(fmt::emphasis::bold | fg(fmt::color::red), "Elapsed time: {0:.2f} seconds", 1.23);

Definition at line 549 of file color.h.

551  {
553  typedef typename internal::char_t<String>::type char_t;
554  typedef typename buffer_context<char_t>::type context_t;
555  format_arg_store<context_t, Args...> as{args...};
556  vprint(f, ts, format_str, basic_format_args<context_t>(as));
557 }
result::char_type type
Definition: core.h:521
const S & format_str
Definition: format.h:3342
format_arg_store< context, Args... > as
Definition: format.h:3345
static QCString args
Definition: declinfo.cpp:674
std::enable_if<!is_compile_string< S >::value >::type check_format_string(const S &)
Definition: core.h:1352
Definition: core.h:1318
void vprint(std::FILE *f, const text_style &ts, const S &format, basic_format_args< typename buffer_context< Char >::type > args)
Definition: color.h:517
template<typename String , typename... Args>
std::enable_if<internal::is_string<String>::value>::type print ( const text_style ts,
const String format_str,
const Args &...  args 
)

Formats a string and prints it to stdout using ANSI escape sequences to specify text formatting. Example: fmt::print(fmt::emphasis::bold | fg(fmt::color::red), "Elapsed time: {0:.2f} seconds", 1.23);

Definition at line 567 of file color.h.

569  {
570  return print(stdout, ts, format_str, args...);
571 }
static QCString args
Definition: declinfo.cpp:674
std::enable_if< internal::is_string< String >::value >::type print(std::FILE *f, const text_style &ts, const String &format_str, const Args &...args)
Definition: color.h:549
template<typename S , typename Char = typename internal::char_t<S>::type>
void vprint ( std::FILE *  f,
const text_style ts,
const S format,
basic_format_args< typename buffer_context< Char >::type args 
)

Definition at line 517 of file color.h.

518  {
519  bool has_style = false;
520  if (ts.has_emphasis()) {
521  has_style = true;
522  internal::fputs<Char>(
523  internal::make_emphasis<Char>(ts.get_emphasis()), f);
524  }
525  if (ts.has_foreground()) {
526  has_style = true;
527  internal::fputs<Char>(
528  internal::make_foreground_color<Char>(ts.get_foreground()), f);
529  }
530  if (ts.has_background()) {
531  has_style = true;
532  internal::fputs<Char>(
533  internal::make_background_color<Char>(ts.get_background()), f);
534  }
535  vprint(f, format, args);
536  if (has_style) {
537  internal::reset_color<Char>(f);
538  }
539 }
FMT_CONSTEXPR emphasis get_emphasis() const FMT_NOEXCEPT
Definition: color.h:345
FMT_CONSTEXPR bool has_emphasis() const FMT_NOEXCEPT
Definition: color.h:334
FMT_CONSTEXPR bool has_foreground() const FMT_NOEXCEPT
Definition: color.h:328
FMT_CONSTEXPR internal::color_type get_background() const FMT_NOEXCEPT
Definition: color.h:341
void vprint(std::FILE *f, const text_style &ts, const S &format, basic_format_args< typename buffer_context< Char >::type > args)
Definition: color.h:517
FMT_CONSTEXPR internal::color_type get_foreground() const FMT_NOEXCEPT
Definition: color.h:337
FMT_CONSTEXPR bool has_background() const FMT_NOEXCEPT
Definition: color.h:331