diff --git a/NEWS b/NEWS index 0b38ea53..f1f95761 100644 --- a/NEWS +++ b/NEWS @@ -16,6 +16,7 @@ Bugs corrected: * glances_network `OSError: [Errno 19] No such device` (issue #1106) * GPU plugin. : ... not JSON serializable"> (issue #1112) * PermissionError on macOS (issue #1120) + * Cant move up or down in glances --browser (issue #1113) Installation: diff --git a/glances/outputs/glances_curses_browser.py b/glances/outputs/glances_curses_browser.py index fe6b51ce..18bbb53d 100644 --- a/glances/outputs/glances_curses_browser.py +++ b/glances/outputs/glances_curses_browser.py @@ -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)