Commit 633a5efc authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

--list: do not use colors if stdout is not a TTY

This is consistent with --help behaviour.
parent ec994587
......@@ -1921,6 +1921,9 @@ static void ListModules( libvlc_int_t *p_this, bool b_verbose )
#ifdef WIN32
ShowConsole( true );
b_color = false; // don't put color control codes in a .txt file
#else
if( !isatty( 1 ) )
b_color = false;
#endif
/* List all modules */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment