We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2fe8232 commit c2c0519Copy full SHA for c2c0519
1 file changed
src/renderer/tui.ts
@@ -195,10 +195,14 @@ function setupEventHandlers(
195
state.ptyInfo = info;
196
if (screen && !state.screenDestroyed) {
197
screen.terminal = info.term || "xterm-256color";
198
- screen.program.cols = info.cols;
199
- screen.program.rows = info.rows;
200
- screen.cols = info.cols;
201
- screen.rows = info.rows;
+ if (stream) {
+ stream.columns = info.cols;
+ stream.rows = info.rows;
+ }
202
+ const program = screen.program as any;
203
+ if (program && typeof program.resize === "function") {
204
+ program.resize(info.cols, info.rows);
205
206
screen.alloc();
207
triggerResize();
208
}
0 commit comments