mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 05:43:48 -07:00
chg: enable ansi-colors for OSX
This commit is contained in:
parent
88becf8b09
commit
09b2a079ba
2 changed files with 13 additions and 13 deletions
|
@ -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
|
||||
"."
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue