Commit b908fdaf authored by liuzheng712's avatar liuzheng712

udpate

parent ef59cff4
...@@ -366,8 +366,8 @@ class WebTerminalHandler(tornado.websocket.WebSocketHandler): ...@@ -366,8 +366,8 @@ class WebTerminalHandler(tornado.websocket.WebSocketHandler):
if 'resize' in jsondata.get('data'): if 'resize' in jsondata.get('data'):
self.termlog.write(message) self.termlog.write(message)
self.channel.resize_pty( self.channel.resize_pty(
jsondata.get('data').get('resize').get('cols', 80), width=jsondata.get('data').get('resize').get('cols', 80),
jsondata.get('data').get('resize').get('rows', 24) height=jsondata.get('data').get('resize').get('rows', 24)
) )
elif jsondata.get('data'): elif jsondata.get('data'):
self.termlog.recoder = True self.termlog.recoder = True
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment