Commit 87565d2c authored by Stavros Sachtouris's avatar Stavros Sachtouris
Browse files

Colors off if stdout is not a tty

parent f551841a
......@@ -197,7 +197,7 @@ def _init_session(arguments):
_verbose = arguments['verbose'].value
global _colors
_colors = arguments['config'].get('global', 'colors')
if _colors != 'on':
if not (stdout.isatty() and _colors == 'on'):
from kamaki.cli.utils import remove_colors
_silent = arguments['silent'].value
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