* mu-cmd-index.c: improve color output when indexing
This commit is contained in:
@ -164,7 +164,7 @@ print_stats (MuIndexStats* stats, gboolean clear, gboolean color)
|
|||||||
if (color)
|
if (color)
|
||||||
len = (unsigned)snprintf
|
len = (unsigned)snprintf
|
||||||
(output, sizeof(output),
|
(output, sizeof(output),
|
||||||
MU_COLOR_BLUE "%c " MU_COLOR_DEFAULT
|
MU_COLOR_YELLOW "%c " MU_COLOR_DEFAULT
|
||||||
"processing mail; "
|
"processing mail; "
|
||||||
"processed: " MU_COLOR_GREEN "%u; " MU_COLOR_DEFAULT
|
"processed: " MU_COLOR_GREEN "%u; " MU_COLOR_DEFAULT
|
||||||
"updated/new: " MU_COLOR_GREEN "%u" MU_COLOR_DEFAULT
|
"updated/new: " MU_COLOR_GREEN "%u" MU_COLOR_DEFAULT
|
||||||
@ -306,8 +306,16 @@ cmd_index (MuIndex *midx, MuConfig *opts, MuIndexStats *stats,
|
|||||||
MuError rv;
|
MuError rv;
|
||||||
time_t t;
|
time_t t;
|
||||||
|
|
||||||
g_message ("indexing messages under %s [%s]", opts->maildir,
|
if (opts->nocolor)
|
||||||
mu_runtime_path (MU_RUNTIME_PATH_XAPIANDB));
|
g_message ("indexing messages under %s [%s]", opts->maildir,
|
||||||
|
mu_runtime_path (MU_RUNTIME_PATH_XAPIANDB));
|
||||||
|
else
|
||||||
|
g_message ("indexing messages under "
|
||||||
|
MU_COLOR_BLUE "%s" MU_COLOR_DEFAULT
|
||||||
|
" ["
|
||||||
|
MU_COLOR_BLUE "%s" MU_COLOR_DEFAULT
|
||||||
|
"]", opts->maildir,
|
||||||
|
mu_runtime_path (MU_RUNTIME_PATH_XAPIANDB));
|
||||||
|
|
||||||
t = time (NULL);
|
t = time (NULL);
|
||||||
idata.color = !opts->nocolor;
|
idata.color = !opts->nocolor;
|
||||||
|
|||||||
Reference in New Issue
Block a user