Merge branch 'hotfix/issue392'

This commit is contained in:
Nicolas Hennion 2014-07-02 14:31:58 +02:00
commit 87eb21afe1

View File

@ -248,9 +248,15 @@ class GlancesCurses(object):
def end(self):
"""Shutdown the curses window."""
if hasattr(curses, 'echo'):
curses.echo()
if hasattr(curses, 'nocbreak'):
curses.nocbreak()
if hasattr(curses, 'curs_set'):
try:
curses.curs_set(1)
except Exception:
pass
curses.endwin()
def display(self, stats, cs_status="None"):