mirror of
https://github.com/nicolargo/glances.git
synced 2024-12-23 17:22:46 +03:00
Catch curs_set
This commit is contained in:
parent
3198e3d7a3
commit
2c0a31855c
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user