We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 71e582a commit 4094430Copy full SHA for 4094430
src/packages/frontend/frame-editors/terminal-editor/connected-terminal.ts
@@ -323,7 +323,10 @@ export class Terminal<T extends CodeEditorState = CodeEditorState> {
323
conn.on("close", this.connect);
324
conn.on("kick", this.close_request);
325
conn.on("data", this.handleDataFromProject);
326
- conn.on("init", this.render);
+ conn.on("init", (data) => {
327
+ this.terminal.clear();
328
+ this.render(data);
329
+ });
330
conn.once("ready", () => {
331
delete this.last_geom;
332
this.ignore_terminal_data = false;
0 commit comments