Skip to content

Commit

Permalink
Merge: Default to TERM=dumb even if $TERM is set but empty. Fix #39. C…
Browse files Browse the repository at this point in the history
…lose #138.
  • Loading branch information
erikrose committed Sep 26, 2018
2 parents 3f59001 + 04c3758 commit 4e51546
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion blessings/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def __init__(self, kind=None, stream=None, force_styling=False):
# send them to stdout as a fallback, since they have to go
# somewhere.
try:
setupterm(kind or environ.get('TERM', 'dumb'),
setupterm(kind or environ.get('TERM', 'dumb') or 'dumb',
self._init_descriptor)
except curses.error:
# There was an error setting up the terminal, either curses is
Expand Down

0 comments on commit 4e51546

Please sign in to comment.