mirror of
https://github.com/Dr-Noob/cpufetch.git
synced 2026-03-25 16:00:39 +01:00
Support for simple args options(currently, help and style). New feature to switch colors of logo, to improve visibility in bright terminals
This commit is contained in:
21
printer.h
21
printer.h
@@ -4,12 +4,6 @@
|
||||
#include "standart.h"
|
||||
#include "ascii.h"
|
||||
|
||||
struct ascii;
|
||||
|
||||
struct ascii* set_ascii(VENDOR cpuVendor);
|
||||
void print_ascii(struct ascii* art);
|
||||
int setAttribute(struct ascii* art, int type, char* value);
|
||||
|
||||
#define BOOLEAN_TRUE 1
|
||||
#define BOOLEAN_FALSE 0
|
||||
|
||||
@@ -28,4 +22,19 @@ int setAttribute(struct ascii* art, int type, char* value);
|
||||
#define ATTRIBUTE_L3 11
|
||||
#define ATTRIBUTE_PEAK 12
|
||||
|
||||
typedef int STYLE;
|
||||
#define STYLES_COUNT 2
|
||||
|
||||
#define STYLE_EMPTY -2
|
||||
#define STYLE_INVALID -1
|
||||
#define STYLE_DEFAULT 0
|
||||
#define STYLE_DARK 1
|
||||
|
||||
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);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user