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
19
class
UtilsOSDependable
{
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();
47
public
:
55
static
bool
is_bg_color_dark
();
56
72
static
int
run_process
(
const
char
* cmd,
char
*
const
argv[]);
73
};
// UtilsOSDependable
UtilsOSDependable
Definition
os_utils.hpp:19
UtilsOSDependable::run_process
static int run_process(const char *cmd, char *const argv[])
Executes an external program, replacing the current process (exec-style).
Definition
posix_utils.cpp:97
UtilsOSDependable::is_bg_color_dark
static bool is_bg_color_dark()
Determines if terminal background color is dark.
Definition
posix_utils.cpp:93
include
arkanjo
utils
os_utils.hpp
Generated by
1.12.0