mirror of
https://github.com/Dr-Noob/cpufetch.git
synced 2026-03-25 07:50:40 +01:00
[v0.98][PPC] Added IBM color scheme
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
|
||||
#define COLOR_STR_INTEL "intel"
|
||||
#define COLOR_STR_AMD "amd"
|
||||
#define COLOR_STR_IBM "ibm"
|
||||
#define COLOR_STR_ARM "arm"
|
||||
|
||||
static const char *SYTLES_STR_LIST[] = {
|
||||
@@ -131,6 +132,11 @@ bool parse_color(char* optarg_str, struct colors** cs) {
|
||||
strcpy(str_to_parse, COLOR_DEFAULT_AMD);
|
||||
free_ptr = true;
|
||||
}
|
||||
else if(strcmp(optarg_str, COLOR_STR_IBM) == 0) {
|
||||
str_to_parse = malloc(sizeof(char) * 45);
|
||||
strcpy(str_to_parse, COLOR_DEFAULT_IBM);
|
||||
free_ptr = true;
|
||||
}
|
||||
else if(strcmp(optarg_str, COLOR_STR_ARM) == 0) {
|
||||
str_to_parse = malloc(sizeof(char) * 46);
|
||||
strcpy(str_to_parse, COLOR_DEFAULT_ARM);
|
||||
|
||||
Reference in New Issue
Block a user