* mu-cfind.c: improve color output impl
This commit is contained in:
@ -142,21 +142,16 @@ each_contact_org_contact (const char *email, const char *name)
|
|||||||
static void
|
static void
|
||||||
print_plain (const char *email, const char *name, gboolean color)
|
print_plain (const char *email, const char *name, gboolean color)
|
||||||
{
|
{
|
||||||
if (name) {
|
if (name)
|
||||||
if (color)
|
g_print ("%s%s%s ",
|
||||||
mu_util_color_print (MU_COLOR_MAGENTA, name);
|
color ? MU_COLOR_MAGENTA : "",
|
||||||
else
|
name,
|
||||||
fputs (name, stdout);
|
color ? MU_COLOR_DEFAULT : "");
|
||||||
|
|
||||||
fputs (" ", stdout);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (color)
|
g_print ("%s%s%s\n",
|
||||||
mu_util_color_print (MU_COLOR_GREEN, email);
|
color ? MU_COLOR_GREEN : "",
|
||||||
else
|
email,
|
||||||
fputs (email, stdout);
|
color ? MU_COLOR_DEFAULT : "");
|
||||||
|
|
||||||
fputs ("\n", stdout);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
struct _ECData {
|
struct _ECData {
|
||||||
|
|||||||
Reference in New Issue
Block a user