aboutsummaryrefslogtreecommitdiff
path: root/src/util/color.hpp
blob: d209b36a0e27a381f1061767b240691f597a1e86 (plain)
1
2
3
4
5
6
7
8
9
10
11
#pragma once

#include <cstdint>
#include <fmt/core.h>
#include <string>

constexpr fmt::string_view RESET_ALL_MODES = "{esc}[0m";

auto get_foreground_esc_seq(const std::uint32_t &color) noexcept -> std::string;

auto get_background_esc_seq(const std::uint32_t &color) noexcept -> std::string;