#include <stdio.h>
Go to the source code of this file.
|
int | perf_color_default_config (const char *var, const char *value, void *cb) |
|
int | perf_config_colorbool (const char *var, const char *value, int stdout_is_tty) |
|
int | color_vsnprintf (char *bf, size_t size, const char *color, const char *fmt, va_list args) |
|
int | color_vfprintf (FILE *fp, const char *color, const char *fmt, va_list args) |
|
int | color_fprintf (FILE *fp, const char *color, const char *fmt,...) |
|
int | color_snprintf (char *bf, size_t size, const char *color, const char *fmt,...) |
|
int | color_fwrite_lines (FILE *fp, const char *color, size_t count, const char *buf) |
|
int | value_color_snprintf (char *bf, size_t size, const char *fmt, double value) |
|
int | percent_color_snprintf (char *bf, size_t size, const char *fmt,...) |
|
int | percent_color_len_snprintf (char *bf, size_t size, const char *fmt,...) |
|
int | percent_color_fprintf (FILE *fp, const char *fmt, double percent) |
|
const char * | get_percent_color (double percent) |
|
◆ COLOR_MAXLEN
◆ MIN_GREEN
◆ MIN_RED
◆ PERF_COLOR_BG_RED
#define PERF_COLOR_BG_RED "\033[41m" |
◆ PERF_COLOR_BLUE
#define PERF_COLOR_BLUE "\033[34m" |
◆ PERF_COLOR_BOLD
#define PERF_COLOR_BOLD "\033[1m" |
◆ PERF_COLOR_CYAN
#define PERF_COLOR_CYAN "\033[36m" |
◆ PERF_COLOR_GREEN
#define PERF_COLOR_GREEN "\033[32m" |
◆ PERF_COLOR_MAGENTA
#define PERF_COLOR_MAGENTA "\033[35m" |
◆ PERF_COLOR_NORMAL
#define PERF_COLOR_NORMAL "" |
◆ PERF_COLOR_RED
#define PERF_COLOR_RED "\033[31m" |
◆ PERF_COLOR_RESET
#define PERF_COLOR_RESET "\033[m" |
◆ PERF_COLOR_YELLOW
#define PERF_COLOR_YELLOW "\033[33m" |
◆ color_fprintf()
int color_fprintf |
( |
FILE * |
fp, |
|
|
const char * |
color, |
|
|
const char * |
fmt, |
|
|
|
... |
|
) |
| |
◆ color_fwrite_lines()
int color_fwrite_lines |
( |
FILE * |
fp, |
|
|
const char * |
color, |
|
|
size_t |
count, |
|
|
const char * |
buf |
|
) |
| |
◆ color_snprintf()
int color_snprintf |
( |
char * |
bf, |
|
|
size_t |
size, |
|
|
const char * |
color, |
|
|
const char * |
fmt, |
|
|
|
... |
|
) |
| |
◆ color_vfprintf()
int color_vfprintf |
( |
FILE * |
fp, |
|
|
const char * |
color, |
|
|
const char * |
fmt, |
|
|
va_list |
args |
|
) |
| |
◆ color_vsnprintf()
int color_vsnprintf |
( |
char * |
bf, |
|
|
size_t |
size, |
|
|
const char * |
color, |
|
|
const char * |
fmt, |
|
|
va_list |
args |
|
) |
| |
◆ get_percent_color()
const char* get_percent_color |
( |
double |
percent | ) |
|
◆ percent_color_fprintf()
int percent_color_fprintf |
( |
FILE * |
fp, |
|
|
const char * |
fmt, |
|
|
double |
percent |
|
) |
| |
◆ percent_color_len_snprintf()
int percent_color_len_snprintf |
( |
char * |
bf, |
|
|
size_t |
size, |
|
|
const char * |
fmt, |
|
|
|
... |
|
) |
| |
◆ percent_color_snprintf()
int percent_color_snprintf |
( |
char * |
bf, |
|
|
size_t |
size, |
|
|
const char * |
fmt, |
|
|
|
... |
|
) |
| |
◆ perf_color_default_config()
int perf_color_default_config |
( |
const char * |
var, |
|
|
const char * |
value, |
|
|
void * |
cb |
|
) |
| |
◆ perf_config_colorbool()
int perf_config_colorbool |
( |
const char * |
var, |
|
|
const char * |
value, |
|
|
int |
stdout_is_tty |
|
) |
| |
◆ value_color_snprintf()
int value_color_snprintf |
( |
char * |
bf, |
|
|
size_t |
size, |
|
|
const char * |
fmt, |
|
|
double |
value |
|
) |
| |
◆ perf_use_color_default
int perf_use_color_default |