bugfix
This commit is contained in:
parent
a3bcb5907a
commit
edaf96d156
@ -24,7 +24,6 @@ class XtermProcessor(PythonScriptProcessor):
|
|||||||
async def ws_2_process(self, ws):
|
async def ws_2_process(self, ws):
|
||||||
async for msg in ws:
|
async for msg in ws:
|
||||||
if msg.type == aiohttp.WSMsgType.TEXT:
|
if msg.type == aiohttp.WSMsgType.TEXT:
|
||||||
debug(f'recv from ws:{msg}.................')
|
|
||||||
data = DictObject(**json.loads(msg.data))
|
data = DictObject(**json.loads(msg.data))
|
||||||
if data.type == 'input':
|
if data.type == 'input':
|
||||||
self.p_obj.stdin.write(data.data)
|
self.p_obj.stdin.write(data.data)
|
||||||
@ -32,9 +31,6 @@ class XtermProcessor(PythonScriptProcessor):
|
|||||||
await self.ws_send_heartbeat(ws)
|
await self.ws_send_heartbeat(ws)
|
||||||
elif data.type == 'resize':
|
elif data.type == 'resize':
|
||||||
try:
|
try:
|
||||||
debug(f'{data=}')
|
|
||||||
#self.p_obj._chan.change_terminal_size(data.rows, data.cols, data.width, data.height)
|
|
||||||
# self.p_obj._chan.change_terminal_size(data.rows, data.cols)
|
|
||||||
self.p_obj._chan.change_terminal_size(data.cols, data.rows)
|
self.p_obj._chan.change_terminal_size(data.cols, data.rows)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
exception(f'{data=}, {e=}, {format_exc()}')
|
exception(f'{data=}, {e=}, {format_exc()}')
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user