NoTeX 1.0.0
A modern noteworthy LaTeX template
Loading...
Searching...
No Matches
ansi::color Namespace Reference

Namespace containing text foreground color escape sequences. More...

Variables

constexpr std::string_view black = "\033[30m"
 Text foreground color: black.
constexpr std::string_view red = "\033[31m"
 Text foreground color: red.
constexpr std::string_view green = "\033[32m"
 Text foreground color: green.
constexpr std::string_view yellow = "\033[33m"
 Text foreground color: yellow.
constexpr std::string_view blue = "\033[34m"
 Text foreground color: blue.
constexpr std::string_view magenta = "\033[35m"
 Text foreground color: magenta.
constexpr std::string_view cyan = "\033[36m"
 Text foreground color: cyan.
constexpr std::string_view white = "\033[37m"
 Text foreground color: white.
constexpr std::string_view bright_black = "\033[90m"
 Text foreground color: bright black (gray).
constexpr std::string_view bright_red = "\033[91m"
 Text foreground color: bright red.
constexpr std::string_view bright_green = "\033[92m"
 Text foreground color: bright green.
constexpr std::string_view bright_yellow = "\033[93m"
 Text foreground color: bright yellow.
constexpr std::string_view bright_blue = "\033[94m"
 Text foreground color: bright blue.
constexpr std::string_view bright_magenta = "\033[95m"
 Text foreground color: bright magenta.
constexpr std::string_view bright_cyan = "\033[96m"
 Text foreground color: bright cyan.
constexpr std::string_view bright_white = "\033[97m"
 Text foreground color: bright white.

Detailed Description

Namespace containing text foreground color escape sequences.

Provides ANSI escape codes for standard and bright/intense text colors. Standard colors are available in the root namespace, bright variants are prefixed with bright_.

Variable Documentation

◆ black

std::string_view ansi::color::black = "\033[30m"
constexpr

Text foreground color: black.

Definition at line 67 of file constants.hpp.

◆ blue

std::string_view ansi::color::blue = "\033[34m"
constexpr

Text foreground color: blue.

Definition at line 75 of file constants.hpp.

◆ bright_black

std::string_view ansi::color::bright_black = "\033[90m"
constexpr

Text foreground color: bright black (gray).

Definition at line 84 of file constants.hpp.

◆ bright_blue

std::string_view ansi::color::bright_blue = "\033[94m"
constexpr

Text foreground color: bright blue.

Definition at line 92 of file constants.hpp.

◆ bright_cyan

std::string_view ansi::color::bright_cyan = "\033[96m"
constexpr

Text foreground color: bright cyan.

Definition at line 96 of file constants.hpp.

◆ bright_green

std::string_view ansi::color::bright_green = "\033[92m"
constexpr

Text foreground color: bright green.

Definition at line 88 of file constants.hpp.

◆ bright_magenta

std::string_view ansi::color::bright_magenta = "\033[95m"
constexpr

Text foreground color: bright magenta.

Definition at line 94 of file constants.hpp.

◆ bright_red

std::string_view ansi::color::bright_red = "\033[91m"
constexpr

Text foreground color: bright red.

Definition at line 86 of file constants.hpp.

◆ bright_white

std::string_view ansi::color::bright_white = "\033[97m"
constexpr

Text foreground color: bright white.

Definition at line 98 of file constants.hpp.

◆ bright_yellow

std::string_view ansi::color::bright_yellow = "\033[93m"
constexpr

Text foreground color: bright yellow.

Definition at line 90 of file constants.hpp.

◆ cyan

std::string_view ansi::color::cyan = "\033[36m"
constexpr

Text foreground color: cyan.

Definition at line 79 of file constants.hpp.

Referenced by notex::ui::step().

◆ green

std::string_view ansi::color::green = "\033[32m"
constexpr

Text foreground color: green.

Definition at line 71 of file constants.hpp.

Referenced by notex::ui::success().

◆ magenta

std::string_view ansi::color::magenta = "\033[35m"
constexpr

Text foreground color: magenta.

Definition at line 77 of file constants.hpp.

◆ red

std::string_view ansi::color::red = "\033[31m"
constexpr

Text foreground color: red.

Definition at line 69 of file constants.hpp.

Referenced by notex::ui::error(), and init_logging().

◆ white

std::string_view ansi::color::white = "\033[37m"
constexpr

Text foreground color: white.

Definition at line 81 of file constants.hpp.

◆ yellow

std::string_view ansi::color::yellow = "\033[33m"
constexpr

Text foreground color: yellow.

Definition at line 73 of file constants.hpp.

Referenced by notex::ui::warning().