From 04c37581a25ade685af43454553609037fdb8bdb Mon Sep 17 00:00:00 2001 From: Thomas Deutschmann Date: Sun, 9 Sep 2018 04:31:38 +0200 Subject: Default to TERM=dumb even if $TERM is set but empty Bug: https://github.com/erikrose/blessings/issues/39 --- blessings/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.1