termites 1.0.39 → 1.0.40
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/server.js +5 -0
package/package.json
CHANGED
package/server.js
CHANGED
|
@@ -1750,6 +1750,11 @@ class TermitesServer {
|
|
|
1750
1750
|
term.clear();
|
|
1751
1751
|
clearHistory(); // Clear history when switching clients
|
|
1752
1752
|
ws.send(JSON.stringify({ type: 'select', clientId }));
|
|
1753
|
+
// Send resize to adjust PTY to current screen size
|
|
1754
|
+
ws.send(JSON.stringify({
|
|
1755
|
+
type: 'resize', clientId: clientId,
|
|
1756
|
+
cols: term.cols, rows: term.rows
|
|
1757
|
+
}));
|
|
1753
1758
|
updateClientList();
|
|
1754
1759
|
document.getElementById('drawer').classList.remove('open');
|
|
1755
1760
|
document.getElementById('overlay').classList.remove('open');
|