blob: 37906d485b5500c8a764e203618eb72196a39847 (
plain)
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
|
// Clear screen and move cursor to home position
#define CLS "\033[2J"
// Set cursor at y, x (line, column)
#define CURSOR(y, x) "\033["#y";"#x"f"
//Colors
#define BLACK "\033[0;30m"
#define BLUE "\033[0;34m"
#define GREEN "\033[0;32m"
#define CYAN "\033[0;36m"
#define RED "\033[0;31m"
#define PURPLE "\033[0;35m"
#define BROWN "\033[0;33m"
#define LT_GRAY "\033[0;37m"
#define DK_GRAY "\033[1;30m"
#define LT_BLUE "\033[1;34m"
#define LT_GREEN "\033[1;32m"
#define LT_CYAN "\033[1;36m"
#define LT_RED "\033[1;31m"
#define LT_PURPLE "\033[1;35m"
#define YELLOW "\033[1;33m"
#define WHITE "\033[1;37m"
//Attributes
#define CLRATTR "\033[0m"
|