fix: set correct vars and cols property
This commit is contained in:
parent
d9b6e47e88
commit
3858453bbb
1 changed files with 3 additions and 1 deletions
|
|
@ -102,7 +102,9 @@ const onConnection = (socket) => {
|
||||||
});
|
});
|
||||||
socket.on('geometry', (cols, rows) => {
|
socket.on('geometry', (cols, rows) => {
|
||||||
// TODO need to rework how we pass settings to ssh2, this is less than ideal
|
// TODO need to rework how we pass settings to ssh2, this is less than ideal
|
||||||
socket.request.session.ssh.terminfo = { cols, rows };
|
const s = socket;
|
||||||
|
s.request.session.ssh.cols = cols;
|
||||||
|
s.request.session.ssh.rows = rows;
|
||||||
webssh2debug(socket, `SOCKET GEOMETRY: termCols = ${cols}, termRows = ${rows}`);
|
webssh2debug(socket, `SOCKET GEOMETRY: termCols = ${cols}, termRows = ${rows}`);
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue