fmt::text_style
A text style consisting of foreground and background colors and emphasis.
Synopsis
Declared in <fmt/color.h>
class text_style;
Member Functions
Friends
Name |
Description |
bg |
Creates a text style from the background color. |
fg |
Creates a text style from the foreground (text) color. |
operator| |
Bitwise disjunction operator |
|===
Non-Member Functions
Name |
Description |
format | Formats arguments and returns the result as a string using ANSI escape sequences to specify text formatting. |
print | Formats a string and prints it to stdout using ANSI escape sequences to specify text formatting. |