Silent resize cmds & Auto resize terminal #2
This commit is contained in:
1 parent
a2a441cdca
commit
a81b4834ce
3 files changed
+20
-10
No files matched your search
@@ -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}`);
|
||||
|
||||
Reference in new issue
Block a user