#include <vic_strings.hpp>
|
static uint8_t | num_colours = 10 |
|
static std::string | nocol = std::string("\033[0m") |
|
static std::string | red = std::string("\033[38;5;9m") |
|
static std::string | green = std::string("\033[38;5;10m") |
|
static std::string | blue = std::string("\033[38;5;12m") |
|
static std::string | lblue = std::string("\033[38;5;14m") |
|
static std::string | orange = std::string("\033[38;5;208m") |
|
static std::string | yellow = std::string("\033[38;5;11m") |
|
static std::string | purple = std::string("\033[38;5;13m") |
|
static std::string | grey = std::string("\033[38;5;242m") |
|
static std::string | lgrey = std::string("\033[38;5;248m") |
|
Codes for colours. These are standard, see:
https://en.wikipedia.org/wiki/ANSI_escape_code
The third digit is 6-bit RGB, 16 + 36R + 6G + B. 0 to 15 are standard colours and the rest (232 to 255) are greyscale.
Definition at line 85 of file vic_strings.hpp.
◆ name_to_string()
std::string ansi_escape_colours::Colour::name_to_string |
( |
const ColourName & | name | ) |
|
|
static |
Definition at line 55 of file vic_strings.cpp.
55 {
56 switch(name) {
57 case ColourName::NOCOL:
58 return Colour::nocol;
59 break;
60 case ColourName::RED:
61 return Colour::red;
62 break;
63 case ColourName::GREEN:
64 return Colour::green;
65 break;
66 case ColourName::BLUE:
67 return Colour::blue;
68 break;
69 case ColourName::LBLUE:
70 return Colour::lblue;
71 break;
72 case ColourName::ORANGE:
73 return Colour::orange;
74 break;
75 case ColourName::YELLOW:
76 return Colour::yellow;
77 break;
78 case ColourName::PURPLE:
79 return Colour::purple;
80 break;
81 case ColourName::GREY:
82 return Colour::grey;
83 break;
84 case ColourName::LGREY:
85 return Colour::lgrey;
86 break;
87 default:
88 return Colour::nocol;
89 break;
90 }
91 }
◆ blue
std::string ansi_escape_colours::Colour::blue = std::string("\033[38;5;12m") |
|
static |
◆ green
std::string ansi_escape_colours::Colour::green = std::string("\033[38;5;10m") |
|
static |
◆ grey
std::string ansi_escape_colours::Colour::grey = std::string("\033[38;5;242m") |
|
static |
◆ lblue
std::string ansi_escape_colours::Colour::lblue = std::string("\033[38;5;14m") |
|
static |
◆ lgrey
std::string ansi_escape_colours::Colour::lgrey = std::string("\033[38;5;248m") |
|
static |
◆ nocol
std::string ansi_escape_colours::Colour::nocol = std::string("\033[0m") |
|
static |
◆ num_colours
uint8_t ansi_escape_colours::Colour::num_colours = 10 |
|
static |
◆ orange
std::string ansi_escape_colours::Colour::orange = std::string("\033[38;5;208m") |
|
static |
◆ purple
std::string ansi_escape_colours::Colour::purple = std::string("\033[38;5;13m") |
|
static |
◆ red
std::string ansi_escape_colours::Colour::red = std::string("\033[38;5;9m") |
|
static |
◆ yellow
std::string ansi_escape_colours::Colour::yellow = std::string("\033[38;5;11m") |
|
static |
The documentation for this struct was generated from the following files:
- /Users/sbh11/Desktop/connection-prover/c++/connect++/source/utilities/vic_strings.hpp
- /Users/sbh11/Desktop/connection-prover/c++/connect++/source/utilities/vic_strings.cpp