手动修改窗口大小问题

This commit is contained in:
liuzheng712
2016-04-05 10:53:35 +08:00
parent f65290ef38
commit 0499a7265a
5 changed files with 103 additions and 51 deletions

View File

@@ -362,6 +362,7 @@ class WebTerminalHandler(tornado.websocket.WebSocketHandler):
return
if 'resize' in jsondata.get('data'):
self.termlog.write(jsondata)
self.channel.resize_pty(
jsondata.get('data').get('resize').get('cols', 80),
jsondata.get('data').get('resize').get('rows', 24)