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

Name Description
text_style [constructor]Construct from emphasis
get_background
get_emphasis
get_foreground
has_background
has_emphasis
has_foreground
operator|= Bitwise disjunction assignment operator
operator== Equality operator
operator!= Inequality operator

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
formatFormats arguments and returns the result as a string using ANSI escape sequences to specify text formatting.
printFormats a string and prints it to stdout using ANSI escape sequences to specify text formatting.

Created with MrDocs