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