[v0.98][PPC] Added IBM color scheme

This commit is contained in:
Dr-Noob
2021-07-27 22:23:39 +02:00
parent 897d05e976
commit af22b2e186
5 changed files with 13 additions and 4 deletions

View File

@@ -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);