Arkanjo 0.1
A tool for find code duplicated functions in codebases
|
Functions | |
float | get_terminal_bg_color_luminance () |
Gets the luminance of terminal background color. | |
tuple< int, int, int > | parse_terminal_color_response (const string &response) |
Parses terminal color response into RGB components. | |
string | capture_terminal_response () |
Captures terminal response to color query. | |
bool | is_bg_color_dark () |
Determines if terminal background color is dark. | |
int | convert_16_bit_to_8_bit (const string &hex16) |
Converts a 16-bit hex color string to 8-bit RGB components. | |
tuple< int, int, int > | parse_terminal_color_response () |
Parses terminal color response into RGB components on Windows. | |
string UtilsOSDependable::capture_terminal_response | ( | ) |
Captures terminal response to color query.
Definition at line 40 of file linux_utils.cpp.
int UtilsOSDependable::convert_16_bit_to_8_bit | ( | const string & | hex16 | ) |
Converts a 16-bit hex color string to 8-bit RGB components.
hex16 | 16-bit hex color string (format: "RRGGBB" or "#RRGGBB") |
float UtilsOSDependable::get_terminal_bg_color_luminance | ( | ) |
Gets the luminance of terminal background color.
Gets the luminance of terminal background color on Windows.
Definition at line 77 of file linux_utils.cpp.
bool UtilsOSDependable::is_bg_color_dark | ( | ) |
Determines if terminal background color is dark.
Determines if terminal background color is dark on Windows.
Definition at line 89 of file linux_utils.cpp.
tuple< int, int, int > UtilsOSDependable::parse_terminal_color_response | ( | ) |
Parses terminal color response into RGB components on Windows.
tuple< int, int, int > UtilsOSDependable::parse_terminal_color_response | ( | const string & | response | ) |
Parses terminal color response into RGB components.
response | Terminal color response string (format: "rgb:RRRR/GGGG/BBBB") |
May | throw runtime_error for malformed input |
Definition at line 14 of file linux_utils.cpp.