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