Silent resize cmds & Auto resize terminal #2

This commit is contained in:
LukeGus
2024-12-07 00:44:59 -06:00
parent a2a441cdca
commit a81b4834ce
3 changed files with 20 additions and 10 deletions

View File

@@ -49,10 +49,6 @@ wss.on('connection', (ws) => {
return;
}
// Set the terminal size dynamically based on the WebSocket message
const sttyCommand = `stty -echo rows ${data.rows} cols ${data.cols}\n`;
stream.write(sttyCommand);
// Handle data from SSH session
stream.on('data', (data) => {
console.log(`SSH Output: ${data}`);