From c2b0792f97f928ce41950f9b5be5b6e9c897b900 Mon Sep 17 00:00:00 2001 From: Jiangtao Hu Date: Tue, 19 Dec 2017 20:14:31 -0800 Subject: [PATCH] tool: remove curses.resizeterm for diagnostics.sh COLUMNS already fix it. --- modules/tools/diagnostics/diagnostics.py | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/modules/tools/diagnostics/diagnostics.py b/modules/tools/diagnostics/diagnostics.py index 26396186de..ff5caf8158 100644 --- a/modules/tools/diagnostics/diagnostics.py +++ b/modules/tools/diagnostics/diagnostics.py @@ -49,16 +49,6 @@ class Diagnostics(object): self.stdscr.nodelay(1) curses.curs_set(0) - """ - Workaround for issuse #1774, since we know the exactly number of the - columns that we used, so if the default terminal width <= 80, we just - resize the terminal to ensure it is bigger enough for the addstr() call. - Otherwise, addstr() may not happy: "error: addstr() returned ERR". - """ - maxY, maxX = self.stdscr.getmaxyx() - if maxY <= 80: - curses.resizeterm(maxX, 200) - self.lock = threading.Lock() with open(META_DATA_FILE) as f: for line in f: -- GitLab