Iros
 
Loading...
Searching...
No Matches
di::format::style Namespace Reference

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 && >
 

Enumeration Type Documentation

◆ Color

enum class di::format::style::Color
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 

◆ Effect

enum class di::format::style::Effect
strong
Enumerator
None 
Bold 
Faint 
Italic 
Underline 
Blink 
Inverted 
StrikeThrough 
DoubleUnderline 

Function Documentation

◆ operator|() [1/12]

auto di::format::style::operator| ( BackgroundColor background,
Color color )
constexpr

◆ operator|() [2/12]

auto di::format::style::operator| ( BackgroundColor background,
Effect effect )
constexpr

◆ operator|() [3/12]

auto di::format::style::operator| ( BackgroundColor background,
Style style )
constexpr

◆ operator|() [4/12]

auto di::format::style::operator| ( Color color,
BackgroundColor background )
constexpr

◆ operator|() [5/12]

auto di::format::style::operator| ( Color color,
Effect effect )
constexpr

◆ operator|() [6/12]

auto di::format::style::operator| ( Color color,
Style style )
constexpr

◆ operator|() [7/12]

auto di::format::style::operator| ( Effect effect,
BackgroundColor background )
constexpr

◆ operator|() [8/12]

auto di::format::style::operator| ( Effect effect,
Color color )
constexpr

◆ operator|() [9/12]

auto di::format::style::operator| ( Effect effect,
Style style )
constexpr

◆ operator|() [10/12]

auto di::format::style::operator| ( Style style,
BackgroundColor background )
constexpr

◆ operator|() [11/12]

auto di::format::style::operator| ( Style style,
Color color )
constexpr

◆ operator|() [12/12]

auto di::format::style::operator| ( Style style,
Effect effect )
constexpr

◆ Styled()

template<typename T>
di::format::style::Styled ( T && ,
Style  ) -> Styled< T && >