mirror of
https://github.com/Dr-Noob/cpufetch.git
synced 2026-03-26 00:10:38 +01:00
Add "none" style (useful for non colored terminals). Refactoring in printer
This commit is contained in:
@@ -4,10 +4,7 @@
|
||||
#include "standart.h"
|
||||
#include "ascii.h"
|
||||
|
||||
#define BOOLEAN_TRUE 1
|
||||
#define BOOLEAN_FALSE 0
|
||||
|
||||
#define ATTRIBUTE_COUNT 12
|
||||
#define ATTRIBUTE_COUNT 12
|
||||
#define ATTRIBUTE_NAME 0
|
||||
#define ATTRIBUTE_FREQUENCY 1
|
||||
#define ATTRIBUTE_NCORES 2
|
||||
@@ -22,18 +19,19 @@
|
||||
#define ATTRIBUTE_PEAK 11
|
||||
|
||||
typedef int STYLE;
|
||||
#define STYLES_COUNT 2
|
||||
#define STYLES_COUNT 3
|
||||
|
||||
#define STYLE_EMPTY -2
|
||||
#define STYLE_EMPTY -2
|
||||
#define STYLE_INVALID -1
|
||||
#define STYLE_DEFAULT 0
|
||||
#define STYLE_DARK 1
|
||||
#define STYLE_DEFAULT 0
|
||||
#define STYLE_DARK 1
|
||||
#define STYLE_NONE 2
|
||||
|
||||
struct ascii;
|
||||
|
||||
static const int STYLES_CODE_LIST [STYLES_COUNT] = {STYLE_DEFAULT, STYLE_DARK};
|
||||
struct ascii* set_ascii(VENDOR cpuVendor, STYLE style);
|
||||
void print_ascii(struct ascii* art);
|
||||
int setAttribute(struct ascii* art, int type, char* value);
|
||||
void setAttribute(struct ascii* art, int type, char* value);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user