A text style consisting of foreground and background colors and emphasis.
Declared in <fmt/color.h>
class text_style;
| Name | Description |
|---|---|
text_style [constructor] | Default constructor |
get_background | |
get_emphasis | |
get_foreground | |
has_background | |
has_emphasis | |
has_foreground | |
operator|= | Bitwise disjunction assignment operator |
operator== | Equality operator |
operator!= | Inequality operator |
| Name | Description |
|---|---|
fmt::bg | Creates a text style from the background color. |
fmt::fg | Creates a text style from the foreground (text) color. |
fmt::operator| | Bitwise disjunction operator |
| Name | Description |
|---|---|
format | Formats arguments and returns the result as a string using ANSI escape sequences to specify text formatting. |
operator| | Bitwise disjunction operator |
print | Formats a string and prints it to stdout using ANSI escape sequences to specify text formatting. |
println | Formats a string and prints it to stdout followed by a newline, using ANSI escape sequences to specify text formatting. |