Classes | |
| class | BackgroundColor |
| class | Style |
| class | Styled |
Enumerations | |
| enum class | Color { Black = 0 , Red = 1 , Green = 2 , Yellow = 3 , Blue = 4 , Magenta = 5 , Cyan = 6 , White = 7 , Default = 9 } |
| Represent a ANSI terminal color. More... | |
| enum class | Effect { None = 0 , Bold = 1 , Faint = 2 , Italic = 3 , Underline = 4 , Blink = 5 , Inverted = 7 , StrikeThrough = 9 , DoubleUnderline = 21 } |
Functions | |
| constexpr auto | operator| (Color color, BackgroundColor background) |
| constexpr auto | operator| (BackgroundColor background, Color color) |
| constexpr auto | operator| (Color color, Effect effect) |
| constexpr auto | operator| (Effect effect, Color color) |
| constexpr auto | operator| (BackgroundColor background, Effect effect) |
| constexpr auto | operator| (Effect effect, BackgroundColor background) |
| constexpr auto | operator| (Style style, Color color) |
| constexpr auto | operator| (Color color, Style style) |
| constexpr auto | operator| (Style style, BackgroundColor background) |
| constexpr auto | operator| (BackgroundColor background, Style style) |
| constexpr auto | operator| (Style style, Effect effect) |
| constexpr auto | operator| (Effect effect, Style style) |
| template<typename T> | |
| Styled (T &&, Style) -> Styled< T && > | |
|
strong |
Represent a ANSI terminal color.
These correspond to the CSI SGR parameters, as documented here: https://invisible-island.net/xterm/ctlseqs/ctlseqs.html#h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Pm-m.1CA7
| Enumerator | |
|---|---|
| Black | |
| Red | |
| Green | |
| Yellow | |
| Blue | |
| Magenta | |
| Cyan | |
| White | |
| Default | |
|
strong |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
| di::format::style::Styled | ( | T && | , |
| Style | ) -> Styled< T && > |