def handleScreenResize(self, window):
#app.log.debug('handleScreenResize -----------------------')
if sys.platform == 'darwin':
# Some terminals seem to resize the terminal and others leave it
# to the application to resize the curses terminal.
rows, cols = app.curses_util.terminalSize()
curses.resizeterm(rows, cols)
self.layout()
window.controller.onChange()
self.render()
self.top, self.left = app.window.mainCursesWindow.getyx()
self.rows, self.cols = app.window.mainCursesWindow.getmaxyx()
self.layout()
评论列表
文章目录