mirror of https://github.com/djcb/mu.git
* mu-config: don't log ansi stuff when writing to non-tty's
This commit is contained in:
parent
5b0d056f58
commit
fc338b5e26
|
@ -82,7 +82,7 @@ set_group_mu_defaults (void)
|
|||
if (g_getenv (MU_NOCOLOR) != NULL)
|
||||
MU_CONFIG.nocolor = TRUE;
|
||||
|
||||
if (!isatty(fileno(stdout)))
|
||||
if (!isatty(fileno(stdout)) || !isatty(fileno(stderr)))
|
||||
MU_CONFIG.nocolor = TRUE;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue