Arkanjo 0.2
A tool for find code duplicated functions in codebases
Loading...
Searching...
No Matches
os_utils.hpp
Go to the documentation of this file.
1
9#pragma once
10#include <algorithm>
11#include <cstdlib>
12#include <fcntl.h>
13#include <iomanip>
14#include <iostream>
15#include <sstream>
16#include <string>
17#include <vector>
18
27 static float get_terminal_bg_color_luminance();
28
37 static std::tuple<int, int, int> parse_terminal_color_response(const std::string& response);
38
46 static std::string capture_terminal_response();
47public:
55 static bool is_bg_color_dark();
56
72 static int run_process(const char* cmd, char* const argv[]);
73}; // UtilsOSDependable
static int run_process(const char *cmd, char *const argv[])
Executes an external program, replacing the current process (exec-style).
static bool is_bg_color_dark()
Determines if terminal background color is dark.