From 36c98e0935ff348cd6ea85be1e3327e2ff79377f Mon Sep 17 00:00:00 2001 From: nicolargo Date: Sun, 9 Jul 2017 18:49:19 +0200 Subject: [PATCH] Cant move up or down in glances --browser #1113 --- NEWS | 1 + glances/outputs/glances_curses_browser.py | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) 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)