This commit is contained in:
ACoolName 2024-05-27 23:36:56 +03:00
parent 4fdfd7d55e
commit ab715d0ef7

View File

@ -47,8 +47,12 @@ function TerminalComponent (p: {websocket: string|null}) {
const socket = new WebSocket(websocket);
socket.onerror = (ev)=>{
console.log(ev)
}
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})=>{