From 739114045c7735409445b68070494dab8a85aa5e Mon Sep 17 00:00:00 2001 From: sawka Date: Fri, 19 Aug 2022 16:38:24 -0700 Subject: [PATCH] use term.reset() not term.clear() --- src/term.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/term.ts b/src/term.ts index ea2f784d..3240606c 100644 --- a/src/term.ts +++ b/src/term.ts @@ -170,7 +170,7 @@ class TermWrap { return; } this.reloading = true; - this.terminal.clear(); + this.terminal.reset(); let url = sprintf("http://localhost:8080/api/ptyout?sessionid=%s&cmdid=%s", this.sessionId, this.cmdId); fetch(url).then((resp) => { if (!resp.ok) {