提交 c2b0792f 编写于 作者: J Jiangtao Hu 提交者: Liangliang Zhang

tool: remove curses.resizeterm for diagnostics.sh COLUMNS already fix it.

上级 45a19e9d
...@@ -49,16 +49,6 @@ class Diagnostics(object): ...@@ -49,16 +49,6 @@ class Diagnostics(object):
self.stdscr.nodelay(1) self.stdscr.nodelay(1)
curses.curs_set(0) 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() self.lock = threading.Lock()
with open(META_DATA_FILE) as f: with open(META_DATA_FILE) as f:
for line in f: for line in f:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册