blob: 10496b12856a274c8f5eb5331b69988e6eb41baf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#include "color.hpp"
#include <fmt/color.h>
auto get_foreground_esc_seq(const uint32_t &color) noexcept -> std::string
{
return std::string(
fmt::detail::make_foreground_color<char>(fmt::detail::color_type(color)).begin());
}
auto get_background_esc_seq(const uint32_t &color) noexcept -> std::string
{
return std::string(
fmt::detail::make_background_color<char>(fmt::detail::color_type(color)).begin());
}
|