Skip to content

Instantly share code, notes, and snippets.

@OlivierLDff
Created May 22, 2018 17:39
Show Gist options
  • Save OlivierLDff/100a3ef9aeac6c859753a0778579881b to your computer and use it in GitHub Desktop.
Save OlivierLDff/100a3ef9aeac6c859753a0778579881b to your computer and use it in GitHub Desktop.
#define ANSI_FG_RED "\x1b[31m"
#define ANSI_FG_BRIGHT_RED "\x1b[91m"
#define ANSI_FG_GREEN "\x1b[32m"
#define ANSI_FG_BRIGHT_GREEN "\x1b[92m"
#define ANSI_FG_YELLOW "\x1b[33m"
#define ANSI_FG_BRIGHT_YELLOW "\x1b[93m"
#define ANSI_FG_BLUE "\x1b[34m"
#define ANSI_FG_BRIGHT_BLUE "\x1b[94m"
#define ANSI_FG_MAGENTA "\x1b[35m"
#define ANSI_FG_BRIGHT_MAGENTA "\x1b[95m"
#define ANSI_FG_CYAN "\x1b[36m"
#define ANSI_FG_BRIGHT_CYAN "\x1b[96m"
#define ANSI_FG_RESET "\x1b[0m"
#define ANSI_BG_RED "\x1b[41m"
#define ANSI_BG_BRIGHT_RED "\x1b[101m"
#define ANSI_BG_GREEN "\x1b[42m"
#define ANSI_BG_BRIGHT_GREEN "\x1b[102m"
#define ANSI_BG_YELLOW "\x1b[43m"
#define ANSI_BG_BRIGHT_YELLOW "\x1b[103m"
#define ANSI_BG_BLUE "\x1b[44m"
#define ANSI_BG_BRIGHT_BLUE "\x1b[104m"
#define ANSI_BG_MAGENTA "\x1b[45m"
#define ANSI_BG_BRIGHT_MAGENTA "\x1b[105m"
#define ANSI_BG_CYAN "\x1b[46m"
#define ANSI_BG_BRIGHT_CYAN "\x1b[106m"
#define ANSI_BG_RESET "\x1b[40m"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment