blob: b273e4a39b9d21479b95d74f38ee7e96aa7afbd1 (
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
#ifndef AEC_H
#define AEC_H
#include "../sys/sizes.h"
#define SGR_RESET "0"
#define SGR_BOLD "1"
#define SGR_FAINT "2"
#define SGR_ITALIC "3"
#define SGR_UNDERLINE "4"
#define SGR_SLOW_BLINK "5"
#define SGR_RAPID_BLINK "6"
#define SGR_REVERSE "7"
#define SGR_CONCEAL "8"
#define SGR_CROSSED_OUT "9"
#define SGR_UNDERLINE_DOUBLE "21"
#define SGR_INTENSITY_OFF "22"
#define SGR_ITALIC_OFF "23"
#define SGR_UNDERLINE_OFF "24"
#define SGR_BLINK_OFF "25"
#define SGR_REVERSE_OFF "27"
#define SGR_CONCEAL_OFF "28"
#define SGR_CROSSED_OUT_OFF "29"
#define SGR_OVERLINED "53"
#define SGR_OVERLINED_OFF "55"
void sgr(const char *attrs);
#define COLOR_BLACK "0"
#define COLOR_RED "1"
#define COLOR_GREEN "2"
#define COLOR_YELLOW "3"
#define COLOR_BLUE "4"
#define COLOR_PINK "5"
#define COLOR_CYAN "6"
#define COLOR_WHITE "7"
void foreground(const char *code);
void background(const char *code);
void clear_screen();
void clear_line();
void move_cursor(int x, int y);
void cursor_enabled(int is_enabled);
#endif
|