Closes: https://bugs.gentoo.org/654316
Package-Manager: Portage-2.3.49, Repoman-2.3.10
- setupterm(kind or environ.get('TERM', 'unknown'),
- self._init_descriptor)
+ try:
-+ setupterm(kind or environ.get('TERM', 'dumb'),
++ setupterm(kind or environ.get('TERM', 'dumb') or 'dumb',
+ self._init_descriptor)
+ except:
+ # There was an error setting up the terminal, either curses is
- setupterm(kind or environ.get('TERM', 'unknown'),
- self._init_descriptor)
+ try:
-+ setupterm(kind or environ.get('TERM', 'dumb'),
++ setupterm(kind or environ.get('TERM', 'dumb') or 'dumb',
+ self._init_descriptor)
+ except:
+ # There was an error setting up the terminal, either curses is