diff --git a/src/terminal.tsx b/src/terminal.tsx index ac220f4..23f5644 100644 --- a/src/terminal.tsx +++ b/src/terminal.tsx @@ -52,11 +52,11 @@ function TerminalComponent (p: {websocket: string|null}) { } socket.addEventListener('open', () => { - // socket.send(JSON.stringify({CommandType: 'resize', Arguments: [terminal.current?.rows, terminal.current?.cols]})); + socket.send(JSON.stringify({CommandType: 'resize', Arguments: [terminal.current?.rows, terminal.current?.cols]})); }); terminal.current.onResize(({cols, rows})=>{ - socket.send(JSON.stringify({CommandType: 'resize', Arguments: [String(rows)+String(cols)]})); + socket.send(JSON.stringify({CommandType: 'resize', Arguments: [rows, cols]})); }) socket.addEventListener('message', (event) => {