Catch curs_set

This commit is contained in:
Nicolas Hennion 2013-01-16 17:24:24 +01:00
parent 3198e3d7a3
commit 2c0a31855c

View File

@ -1342,7 +1342,10 @@ class glancesScreen:
if hasattr(curses, 'cbreak'): if hasattr(curses, 'cbreak'):
curses.cbreak() curses.cbreak()
if hasattr(curses, 'curs_set'): if hasattr(curses, 'curs_set'):
curses.curs_set(0) try:
curses.curs_set(0)
except:
pass
# Init colors # Init colors
self.hascolors = False self.hascolors = False