Skip to content

Commit 4094430

Browse files
committed
maybe quick fix for terminal re-render issue
1 parent 71e582a commit 4094430

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/packages/frontend/frame-editors/terminal-editor/connected-terminal.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,10 @@ export class Terminal<T extends CodeEditorState = CodeEditorState> {
323323
conn.on("close", this.connect);
324324
conn.on("kick", this.close_request);
325325
conn.on("data", this.handleDataFromProject);
326-
conn.on("init", this.render);
326+
conn.on("init", (data) => {
327+
this.terminal.clear();
328+
this.render(data);
329+
});
327330
conn.once("ready", () => {
328331
delete this.last_geom;
329332
this.ignore_terminal_data = false;

0 commit comments

Comments
 (0)