-
Notifications
You must be signed in to change notification settings - Fork 0
/
misc.h
37 lines (28 loc) · 892 Bytes
/
misc.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/* ANSI colour library codes
* {@link https://github.com/shiena/ansicolor/blob/master/README.md}
*
* Usage: printf(FORE_BLU "This is blue text" RESET);
* printf(FORE_RED "This is %s text" RESET, "red");
*
*/
#ifndef _MISC_LIB
#define _MISC_LIB
// Resets All colour attributes to initial terminal state
#define RESET "\x1B[0m"
// Foreground Colours
#define FORE_RED "\x1B[31m"
#define FORE_GRN "\x1B[32m"
#define FORE_YEL "\x1B[33m"
#define FORE_BLU "\x1B[34m"
#define FORE_MAG "\x1B[35m"
#define FORE_CYN "\x1B[36m"
#define FORE_WHT "\x1B[37m"
// Background Colours
#define BACK_YEL "\x1b[43m"
// Other Attributes
#define ATTR_BOLD "\x1b[1m"
// Symbols
#define SYMBOL_TICK "\xE2\x9C\x93"
#define SYMBOL_CROSS "✘"
#define DASHES "=============================================================================================================================\n"
#endif