json-rpc-shell: respect the NO_COLOR env. variable
This commit is contained in:
parent
af5929a383
commit
4a5c818ba1
@ -1425,7 +1425,7 @@ init_colors (struct app_context *ctx)
|
|||||||
g_terminal.stderr_is_tty = true;
|
g_terminal.stderr_is_tty = true;
|
||||||
break;
|
break;
|
||||||
case COLOR_AUTO:
|
case COLOR_AUTO:
|
||||||
if (!g_terminal.initialized)
|
if (!g_terminal.initialized || getenv ("NO_COLOR"))
|
||||||
{
|
{
|
||||||
case COLOR_NEVER:
|
case COLOR_NEVER:
|
||||||
g_terminal.stdout_is_tty = false;
|
g_terminal.stdout_is_tty = false;
|
||||||
|
Loading…
Reference in New Issue
Block a user