2023-08-24 06:25:18 -04:00
|
|
|
#ifndef CHAD_H
|
2023-08-19 07:18:34 -04:00
|
|
|
|
|
|
|
#include <stdbool.h>
|
|
|
|
|
2023-08-24 06:25:18 -04:00
|
|
|
#define UNUSED(x) ((void)x)
|
2023-08-19 07:18:34 -04:00
|
|
|
|
|
|
|
// Terminal manipulation
|
2023-08-24 06:57:56 -04:00
|
|
|
#define TERMINAL_RESET "\033[0m"
|
2023-08-24 06:25:18 -04:00
|
|
|
|
2023-08-24 06:57:56 -04:00
|
|
|
#define TERMINAL_COLOR_FG_BLACK "\033[30m"
|
|
|
|
#define TERMINAL_COLOR_FG_RED "\033[31m"
|
|
|
|
#define TERMINAL_COLOR_FG_GREEN "\033[32m"
|
|
|
|
#define TERMINAL_COLOR_FG_YELLOW "\033[33m"
|
|
|
|
#define TERMINAL_COLOR_FG_BLUE "\033[34m"
|
|
|
|
#define TERMINAL_COLOR_FG_MAGENTA "\033[35m"
|
|
|
|
#define TERMINAL_COLOR_FG_CYAN "\033[36m"
|
|
|
|
#define TERMINAL_COLOR_FG_WHITE "\033[37m"
|
2023-08-24 06:25:18 -04:00
|
|
|
|
2023-08-24 06:57:56 -04:00
|
|
|
#define TERMINAL_COLOR_BG_BLACK "\033[40m"
|
|
|
|
#define TERMINAL_COLOR_BG_RED "\033[41m"
|
|
|
|
#define TERMINAL_COLOR_BG_GREEN "\033[42m"
|
|
|
|
#define TERMINAL_COLOR_BG_YELLOW "\033[43m"
|
|
|
|
#define TERMINAL_COLOR_BG_BLUE "\033[44m"
|
|
|
|
#define TERMINAL_COLOR_BG_MAGENTA "\033[45m"
|
|
|
|
#define TERMINAL_COLOR_BG_CYAN "\033[46m"
|
|
|
|
#define TERMINAL_COLOR_BG_WHITE "\033[47m"
|
2023-08-24 06:25:18 -04:00
|
|
|
|
2023-08-24 06:57:56 -04:00
|
|
|
#define TERMINAL_STYLE_BOLD "\033[1m"
|
|
|
|
#define TERMINAL_STYLE_ITALICS "\033[3m"
|
|
|
|
#define TERMINAL_STYLE_REVERSE "\033[7m"
|
2023-08-24 06:25:18 -04:00
|
|
|
|
|
|
|
#define CHAD_H
|
2023-08-19 07:18:34 -04:00
|
|
|
#endif
|