Skip to content

Commit

Permalink
Fix #2639 -- disable colors for dumb terminals
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Warrick <kwpolska@gmail.com>
  • Loading branch information
Kwpolska committed Jan 17, 2017
1 parent a852fa3 commit 1cf9ff3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nikola/__main__.py
Expand Up @@ -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
Expand Down

0 comments on commit 1cf9ff3

Please sign in to comment.