Curses UI: Reset the warn method before terminate
The warn() method tries to set the color to red. This leads to a garbled tty after endwin() has been called. So lets simply use the UIBase implementation. Signed-off-by: Christoph Höger <christoph.hoeger@tu-berlin.de>
This commit is contained in:

committed by
Sebastian Spaeth

parent
d079e614ea
commit
b9af72ea11
@ -613,6 +613,8 @@ class Blinkenlights(UIBase, CursesUtil):
|
||||
# basic one, so exceptions and stuff are properly displayed
|
||||
self.logger.removeHandler(self._log_con_handler)
|
||||
UIBase.setup_consolehandler(self)
|
||||
# reset the warning method, we do not have curses anymore
|
||||
self.warn = super(Blinkenlights, self).warn
|
||||
# finally call parent terminate which prints out exceptions etc
|
||||
super(Blinkenlights, self).terminate(*args, **kwargs)
|
||||
|
||||
|
Reference in New Issue
Block a user