aboutsummaryrefslogtreecommitdiff
path: root/src/util/color.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/color.hpp')
-rw-r--r--src/util/color.hpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/util/color.hpp b/src/util/color.hpp
new file mode 100644
index 0000000..5511893
--- /dev/null
+++ b/src/util/color.hpp
@@ -0,0 +1,10 @@
+#pragma once
+
+#include <fmt/core.h>
+#include <string>
+
+constexpr fmt::string_view RESET_ALL_MODES = "{esc}[0m";
+
+std::string get_foreground_esc_seq(const uint32_t &color) noexcept;
+
+std::string get_background_esc_seq(const uint32_t &color) noexcept;