Lines Matching defs:ansi
91 " --color -C Output using ANSI color codes (requires -P).\n"
543 /* NOTE: ansi black is 30 for foreground colors */
562 char *ansi;
565 /* NOTE: ansi background codes are the same as foreground codes +10 */
584 if (!(ansi = malloc(ansi_len)))
586 if (snprintf(ansi, ansi_len, "\e[%d;%dm", fg, bg) > ansi_len)
587 err(EXIT_FAILURE, " Unable to convert colors to ANSI codes");
589 return ansi;
609 char *ansi = disp__con_color_ansi(name, color);
610 fprintf(stdout, "%s", ansi);
611 free(ansi);