|
| static std::string | colorize (const StringLike auto &text, std::string_view code) |
| | Wrap text in a single style.
|
| |
| static std::string | colorize (const StringLike auto &text, std::initializer_list< std::string_view > codes) |
| | Wrap text in multiple styles.
|
| |
template<typename... Codes>
requires (std::convertible_to<Codes, std::string_view> && ...) |
| static std::string | colorize (const StringLike auto &text, Codes &&...codes) |
| | Wrap text in multiple styles.
|
| |
| static std::string | tessellate (const StringLike auto &text, std::initializer_list< std::string_view > codes, std::size_t block_size=1, std::string_view modifier="") |
| | Tessellate text with given styles.
|
| |
template<typename... Codes>
requires (std::convertible_to<Codes, std::string_view> && ...) |
| static std::string | tessellate (const StringLike auto &text, std::size_t block_size, std::string_view modifier, Codes &&...codes) |
| | Tessellate text with given styles.
|
| |
| static bool | is_supported () noexcept |
| | Whether terminal supports ANSI codes.
|
| |
|
| static constexpr std::string_view | RESET = "\033[0m" |
| |
| static constexpr std::string_view | ERASE_SCREEN = "\033[2J" |
| |
| static constexpr std::string_view | BOLD = "\033[1m" |
| |
| static constexpr std::string_view | DIM = "\033[2m" |
| |
| static constexpr std::string_view | ITALIC = "\033[3m" |
| |
| static constexpr std::string_view | UNDERLINE = "\033[4m" |
| |
| static constexpr std::string_view | BLINK = "\033[5m" |
| |
| static constexpr std::string_view | STRIKE = "\033[9m" |
| |
| static constexpr std::string_view | BLACK = "\033[30m" |
| |
| static constexpr std::string_view | RED = "\033[31m" |
| |
| static constexpr std::string_view | GREEN = "\033[32m" |
| |
| static constexpr std::string_view | YELLOW = "\033[33m" |
| |
| static constexpr std::string_view | BLUE = "\033[34m" |
| |
| static constexpr std::string_view | MAGENTA = "\033[35m" |
| |
| static constexpr std::string_view | CYAN = "\033[36m" |
| |
| static constexpr std::string_view | WHITE = "\033[37m" |
| |
| static constexpr std::string_view | DEFAULT = "\033[39m" |
| |
| static constexpr std::string_view | BRIGHT_BLACK = "\033[90m" |
| |
| static constexpr std::string_view | BRIGHT_RED = "\033[91m" |
| |
| static constexpr std::string_view | BRIGHT_GREEN = "\033[92m" |
| |
| static constexpr std::string_view | BRIGHT_YELLOW = "\033[93m" |
| |
| static constexpr std::string_view | BRIGHT_BLUE = "\033[94m" |
| |
| static constexpr std::string_view | BRIGHT_MAGENTA = "\033[95m" |
| |
| static constexpr std::string_view | BRIGHT_CYAN = "\033[96m" |
| |
| static constexpr std::string_view | BRIGHT_WHITE = "\033[97m" |
| |
| static constexpr std::string_view | BG_BLACK = "\033[40m" |
| |
| static constexpr std::string_view | BG_RED = "\033[41m" |
| |
| static constexpr std::string_view | BG_GREEN = "\033[42m" |
| |
| static constexpr std::string_view | BG_YELLOW = "\033[43m" |
| |
| static constexpr std::string_view | BG_BLUE = "\033[44m" |
| |
| static constexpr std::string_view | BG_MAGENTA = "\033[45m" |
| |
| static constexpr std::string_view | BG_CYAN = "\033[46m" |
| |
| static constexpr std::string_view | BG_WHITE = "\033[47m" |
| |
| static constexpr std::string_view | BG_DEFAULT = "\033[49m" |
| |
| static constexpr std::string_view | BG_BRIGHT_BLACK = "\033[100m" |
| |
| static constexpr std::string_view | BG_BRIGHT_RED = "\033[101m" |
| |
| static constexpr std::string_view | BG_BRIGHT_GREEN = "\033[102m" |
| |
| static constexpr std::string_view | BG_BRIGHT_YELLOW = "\033[103m" |
| |
| static constexpr std::string_view | BG_BRIGHT_BLUE = "\033[104m" |
| |
| static constexpr std::string_view | BG_BRIGHT_MAGENTA = "\033[105m" |
| |
| static constexpr std::string_view | BG_BRIGHT_CYAN = "\033[106m" |
| |
| static constexpr std::string_view | BG_BRIGHT_WHITE = "\033[107m" |
| |
| static constexpr std::string_view | MY_ORANGE = "\033[38;5;166m" |
| |
| static constexpr std::string_view | MY_PURPLE = "\033[38;5;91m" |
| |
| static constexpr std::string_view | MY_BLUE = "\033[38;5;33m" |
| |
| static constexpr std::string_view | MY_GRAY = "\033[38;5;240m" |
| |