Skip to content
This repository was archived by the owner on Oct 22, 2021. It is now read-only.

Commit d5c637a

Browse files
committed
🐛 Fix #264 - resize TTY on window resize
1 parent 678aced commit d5c637a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/classes/terminal.class.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,10 @@ class Terminal {
183183
didCopy: false
184184
};
185185

186+
window.onresize = () => {
187+
window.term.fit();
188+
}
189+
186190
} else if (opts.role === "server") {
187191

188192
this.Pty = require("node-pty");

0 commit comments

Comments
 (0)