Skip to content

Instantly share code, notes, and snippets.

@jshardy
Created February 25, 2019 22:59
Show Gist options
  • Save jshardy/461e332bb0a17b36715a98ad68745c73 to your computer and use it in GitHub Desktop.
Save jshardy/461e332bb0a17b36715a98ad68745c73 to your computer and use it in GitHub Desktop.
Linux Terminal Colors
#define COLOR_RED "\x1b[31m"
#define COLOR_GREEN "\x1b[32m"
#define COLOR_YELLOW "\x1b[33m"
#define COLOR_BLUE "\x1b[34m"
#define COLOR_MAGENTA "\x1b[35m"
#define COLOR_CYAN "\x1b[36m"
#define COLOR_RESET "\x1b[0m"
printf(COLOR_RED "This is RED" COLOR_RESET);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment