Skip to content
Permalink
Browse files

Fix #2639 -- disable colors for dumb terminals

Signed-off-by: Chris Warrick <kwpolska@gmail.com>
  • Loading branch information
Kwpolska committed Jan 17, 2017
1 parent a852fa3 commit 1cf9ff3135b4db2fe3a85cb080fd5747ccdfa9e9
Showing with 1 addition and 1 deletion.
  1. +1 −1 nikola/__main__.py
@@ -68,7 +68,7 @@
def main(args=None):
"""Run Nikola."""
colorful = False
if sys.stderr.isatty() and os.name != 'nt' and os.getenv('NIKOLA_MONO') is None:
if sys.stderr.isatty() and os.name != 'nt' and os.getenv('NIKOLA_MONO') is None and os.getenv('TERM') != 'dumb':
colorful = True

ColorfulStderrHandler._colorful = colorful

0 comments on commit 1cf9ff3

Please sign in to comment.
You can’t perform that action at this time.