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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/server.js +5 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "termites",
3
- "version": "1.0.39",
3
+ "version": "1.0.40",
4
4
  "description": "Local multi-terminal manager with web interface",
5
5
  "main": "server.js",
6
6
  "scripts": {
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');