chg: enable ansi-colors for OSX

This commit is contained in:
iceman1001 2018-02-06 19:21:47 +01:00
commit 09b2a079ba
2 changed files with 13 additions and 13 deletions

View file

@ -904,7 +904,7 @@ int detect_classic_nackbug(bool verbose){
// for nice animation
bool term = !isatty(STDIN_FILENO);
#if defined(__linux__)
#if defined(__linux__) || (__APPLE__)
char star[] = {'-', '\\', '|', '/'};
uint8_t staridx = 0;
#endif
@ -915,7 +915,7 @@ int detect_classic_nackbug(bool verbose){
printf(".");
} else {
printf(
#if defined(__linux__)
#if defined(__linux__) || (__APPLE__)
"\e[32m\e[s%c\e[u\e[0m", star[ (staridx++ % 4) ]
#else
"."