|
microfmt
Zero-allocation C++ formatting for constrained environments
|
ANSI terminal color and text-style formatting views. More...


Go to the source code of this file.
Classes | |
| struct | microfmt::ansi::style |
| struct | microfmt::ansi::styled_view< T > |
| struct | microfmt::formatter< ansi::style > |
| struct | microfmt::formatter< ansi::styled_view< T > > |
Namespaces | |
| namespace | microfmt |
| namespace | microfmt::ansi |
Enumerations | |
| enum class | microfmt::ansi::color : uint8_t { microfmt::ansi::none = 0 , microfmt::ansi::black = 30 , microfmt::ansi::red = 31 , microfmt::ansi::green = 32 , microfmt::ansi::yellow = 33 , microfmt::ansi::blue = 34 , microfmt::ansi::magenta = 35 , microfmt::ansi::cyan = 36 , microfmt::ansi::white = 37 , microfmt::ansi::bright_black = 90 , microfmt::ansi::bright_red = 91 , microfmt::ansi::bright_green = 92 , microfmt::ansi::bright_yellow = 93 , microfmt::ansi::bright_blue = 94 , microfmt::ansi::bright_magenta = 95 , microfmt::ansi::bright_cyan = 96 , microfmt::ansi::bright_white = 97 } |
| enum class | microfmt::ansi::attribute : uint8_t { microfmt::ansi::none = 0 , microfmt::ansi::bold = 1 << 0 , microfmt::ansi::dim = 1 << 1 , microfmt::ansi::italic = 1 << 2 , microfmt::ansi::underline = 1 << 3 , microfmt::ansi::blink = 1 << 4 , microfmt::ansi::reverse = 1 << 5 } |
Functions | |
| RELOCO_BEGIN_UNSAFE_CODE constexpr attribute | microfmt::ansi::operator| (attribute a, attribute b) noexcept |
| RELOCO_END_UNSAFE_CODE constexpr bool | microfmt::ansi::operator& (attribute a, attribute b) noexcept |
| MICROFMT_API void | microfmt::ansi::emit_style (const style &s, const sink &out) noexcept |
| MICROFMT_API void | microfmt::ansi::emit_reset (const sink &out) noexcept |
| template<typename T > | |
| constexpr styled_view< T > | microfmt::ansi::styled (const T &val, style st) noexcept |
| template<typename T > | |
| constexpr styled_view< T > | microfmt::ansi::red (const T &val) noexcept |
| template<typename T > | |
| constexpr styled_view< T > | microfmt::ansi::green (const T &val) noexcept |
| template<typename T > | |
| constexpr styled_view< T > | microfmt::ansi::yellow (const T &val) noexcept |
| template<typename T > | |
| constexpr styled_view< T > | microfmt::ansi::blue (const T &val) noexcept |
| template<typename T > | |
| constexpr styled_view< T > | microfmt::ansi::magenta (const T &val) noexcept |
| template<typename T > | |
| constexpr styled_view< T > | microfmt::ansi::cyan (const T &val) noexcept |
| template<typename T > | |
| constexpr styled_view< T > | microfmt::ansi::white (const T &val) noexcept |
| template<typename T > | |
| constexpr styled_view< T > | microfmt::ansi::gray (const T &val) noexcept |
ANSI terminal color and text-style formatting views.