blob: 6a4d27f94495302e9163b6974f1101917f0c4c1a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#ifndef
#define CONSOLE
#define RED "\033[0:31m"
#define GRN "\033[0:32m"
#define WHT "\033[0:37m"
struct ConsoleLine {
char* color;
char* content;
/* pointer to a function accepting a void pointer */
void (*onInteract)(void*);
} consoleLine_t;
consoleLine_t init_consoleline(char* color, char* content);
void clear_screen();
void draw_screen();
void move_selection(int amount);
void interact_selected();
#endif
|