mirror of
https://github.com/nicolargo/glances.git
synced 2024-12-22 16:51:35 +03:00
Merge branch 'issue1113' into develop
This commit is contained in:
commit
86c7b1339d
1
NEWS
1
NEWS
@ -16,6 +16,7 @@ Bugs corrected:
|
||||
* glances_network `OSError: [Errno 19] No such device` (issue #1106)
|
||||
* GPU plugin. <class 'TypeError'>: ... not JSON serializable"> (issue #1112)
|
||||
* PermissionError on macOS (issue #1120)
|
||||
* Cant move up or down in glances --browser (issue #1113)
|
||||
|
||||
Installation:
|
||||
|
||||
|
@ -21,6 +21,7 @@
|
||||
|
||||
import sys
|
||||
|
||||
import curses
|
||||
from glances.outputs.glances_curses import _GlancesCurses
|
||||
|
||||
from glances.logger import logger
|
||||
@ -108,10 +109,10 @@ class GlancesCursesBrowser(_GlancesCurses):
|
||||
# 'ENTER' > Run Glances on the selected server
|
||||
logger.debug("Server number {} selected".format(self.cursor + 1))
|
||||
self.active_server = self.cursor
|
||||
elif self.pressedkey == 65:
|
||||
elif self.pressedkey == curses.KEY_UP:
|
||||
# 'UP' > Up in the server list
|
||||
self.cursor_up(servers_list)
|
||||
elif self.pressedkey == 66:
|
||||
elif self.pressedkey == curses.KEY_DOWN:
|
||||
# 'DOWN' > Down in the server list
|
||||
self.cursor_down(servers_list)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user