diff options
Diffstat (limited to 'libsbutil/sb_efuncs.c')
-rw-r--r-- | libsbutil/sb_efuncs.c | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/libsbutil/sb_efuncs.c b/libsbutil/sb_efuncs.c index 5a86d25..6a7a09b 100644 --- a/libsbutil/sb_efuncs.c +++ b/libsbutil/sb_efuncs.c @@ -10,31 +10,6 @@ #include "headers.h" #include "sbutil.h" -static bool nocolor, init_color = false; -void sb_efunc(const char *color, const char *hilight, const char *format, ...) -{ - save_errno(); - - int fd = STDERR_FILENO; - - if (!init_color) { - nocolor = is_env_on(ENV_NOCOLOR); - init_color = true; - } - - if (!nocolor) - sb_fdprintf(fd, "%s%s%s", color, hilight, COLOR_NORMAL); - else - sb_fdprintf(fd, "%s", hilight); - - va_list args; - va_start(args, format); - sb_vfdprintf(fd, format, args); - va_end(args); - - restore_errno(); -} - const char *colors[] = { "\033[0m", "\033[32;01m", |