diff options
Diffstat (limited to '')
-rw-r--r-- | src/util/shared.h (renamed from src/shared.h) | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/shared.h b/src/util/shared.h index a542ba6..5e5f4a9 100644 --- a/src/shared.h +++ b/src/util/shared.h @@ -4,6 +4,33 @@ #include <stdbool.h> #include <time.h> +#define ANSCII "\x1b[" +#define NEXT ";" + +#define RESET "0" +#define BOLD "1" + +#define NORMAL "3" +#define BACKGROUND "4" +#define HIGHLIGHT "9" + +#define BLACK "0" +#define RED "1" +#define GREEN "2" +#define YELLOW "3" +#define BLUE "4" +#define MAGENTA "5" +#define TURQUOISE "6" +#define WHITE "7" + +#define COLOR "m" + +enum When { + YES, + NO, + AUTO +}; + __attribute__ ((__format__(printf, 1, 2))) void error(const char* format, ...); |