#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 82 of file vic_strings.hpp.
◆ name_to_string()
std::string ansi_escape_colours::Colour::name_to_string |
( |
const ColourName & | name | ) |
|
|
static |
Definition at line 53 of file vic_strings.cpp.
53 {
54 switch(name) {
55 case ColourName::NOCOL:
56 return Colour::nocol;
57 break;
58 case ColourName::RED:
59 return Colour::red;
60 break;
61 case ColourName::GREEN:
62 return Colour::green;
63 break;
64 case ColourName::BLUE:
65 return Colour::blue;
66 break;
67 case ColourName::LBLUE:
68 return Colour::lblue;
69 break;
70 case ColourName::ORANGE:
71 return Colour::orange;
72 break;
73 case ColourName::YELLOW:
74 return Colour::yellow;
75 break;
76 case ColourName::PURPLE:
77 return Colour::purple;
78 break;
79 case ColourName::GREY:
80 return Colour::grey;
81 break;
82 case ColourName::LGREY:
83 return Colour::lgrey;
84 break;
85 default:
86 return Colour::nocol;
87 break;
88 }
89 }
◆ 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++/v0.5.0/source/utilities/vic_strings.hpp
- /Users/sbh11/Desktop/connection-prover/c++/connect++/v0.5.0/source/utilities/vic_strings.cpp