Tatooine
ansiformat.h
Go to the documentation of this file.
1#ifndef TATOOINE_GL_ANSI_FORMAT_H
2#define TATOOINE_GL_ANSI_FORMAT_H
3//==============================================================================
4#include <string>
5//==============================================================================
7//==============================================================================
8static constexpr std::string_view black = "\033[30m";
9static constexpr std::string_view red = "\033[31m";
10static constexpr std::string_view green = "\033[32m";
11static constexpr std::string_view yellow = "\033[33m";
12static constexpr std::string_view blue = "\033[34m";
13static constexpr std::string_view magenta = "\033[35m";
14static constexpr std::string_view cyan = "\033[36m";
15static constexpr std::string_view white = "\033[37m";
16
17static constexpr std::string_view black_bg = "\033[40m";
18static constexpr std::string_view red_bg = "\033[41m";
19static constexpr std::string_view green_bg = "\033[42m";
20static constexpr std::string_view yellow_bg = "\033[43m";
21static constexpr std::string_view blue_bg = "\033[44m";
22static constexpr std::string_view magenta_bg = "\033[45m";
23static constexpr std::string_view cyan_bg = "\033[46m";
24static constexpr std::string_view white_bg = "\033[47m";
25
26static constexpr std::string_view reset = "\033[0m";
27static constexpr std::string_view bold = "\033[1m";
28static constexpr std::string_view underline = "\033[4m";
29static constexpr std::string_view inverse = "\033[7m";
30static constexpr std::string_view bold_off = "\033[21m";
31static constexpr std::string_view underline_off = "\033[24m";
32static constexpr std::string_view inverse_off = "\033[27m";
33//==============================================================================
34} // namespace tatooine::gl::ansi
35//==============================================================================
36#endif
Definition: ansiformat.h:6
static constexpr std::string_view bold
Definition: ansiformat.h:27
static constexpr std::string_view red
Definition: ansiformat.h:9
static constexpr std::string_view blue_bg
Definition: ansiformat.h:21
static constexpr std::string_view black
Definition: ansiformat.h:8
static constexpr std::string_view green_bg
Definition: ansiformat.h:19
static constexpr std::string_view magenta
Definition: ansiformat.h:13
static constexpr std::string_view yellow
Definition: ansiformat.h:11
static constexpr std::string_view white_bg
Definition: ansiformat.h:24
static constexpr std::string_view underline
Definition: ansiformat.h:28
static constexpr std::string_view cyan
Definition: ansiformat.h:14
static constexpr std::string_view inverse
Definition: ansiformat.h:29
static constexpr std::string_view cyan_bg
Definition: ansiformat.h:23
static constexpr std::string_view reset
Definition: ansiformat.h:26
static constexpr std::string_view bold_off
Definition: ansiformat.h:30
static constexpr std::string_view inverse_off
Definition: ansiformat.h:32
static constexpr std::string_view yellow_bg
Definition: ansiformat.h:20
static constexpr std::string_view underline_off
Definition: ansiformat.h:31
static constexpr std::string_view blue
Definition: ansiformat.h:12
static constexpr std::string_view black_bg
Definition: ansiformat.h:17
static constexpr std::string_view green
Definition: ansiformat.h:10
static constexpr std::string_view red_bg
Definition: ansiformat.h:18
static constexpr std::string_view white
Definition: ansiformat.h:15
static constexpr std::string_view magenta_bg
Definition: ansiformat.h:22