diff options
author | Thomas Deutschmann <whissi@gentoo.org> | 2018-09-09 04:31:38 +0200 |
---|---|---|
committer | Thomas Deutschmann <whissi@gentoo.org> | 2018-09-09 04:31:38 +0200 |
commit | 04c37581a25ade685af43454553609037fdb8bdb (patch) | |
tree | 872e8d6e0e97cea31dd43e14efd5e36e9c153c1e /blessings/__init__.py | |
parent | 3f59001a1d40d53a33645ac7478a841b0d03d80d (diff) | |
download | blessings-04c37581a25ade685af43454553609037fdb8bdb.tar.gz |
Default to TERM=dumb even if $TERM is set but empty
Bug: https://github.com/erikrose/blessings/issues/39
Diffstat (limited to 'blessings/__init__.py')
-rw-r--r-- | blessings/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/blessings/__init__.py b/blessings/__init__.py index fdceb09..d9305e6 100644 --- a/blessings/__init__.py +++ b/blessings/__init__.py @@ -95,7 +95,7 @@ class Terminal(object): # 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 |