fixed resize
This commit is contained in:
parent
71e1be333a
commit
f0ac732bb2
@ -52,11 +52,11 @@ function TerminalComponent (p: {websocket: string|null}) {
|
||||
}
|
||||
|
||||
socket.addEventListener('open', () => {
|
||||
socket.send(JSON.stringify({CommandType: 'resize', Arguments: `${terminal.current?.rows}x${terminal.current?.cols}`}));
|
||||
socket.send(JSON.stringify({CommandType: 'resize', Arguments: `${terminal.current?.cols}x${terminal.current?.rows}`}));
|
||||
});
|
||||
|
||||
terminal.current.onResize(({cols, rows})=>{
|
||||
socket.send(JSON.stringify({CommandType: 'resize', Arguments: `${rows}x${cols}`}));
|
||||
socket.send(JSON.stringify({CommandType: 'resize', Arguments: `${cols}x${rows}`}));
|
||||
})
|
||||
|
||||
socket.addEventListener('message', (event) => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user