From 95b1767c4557cf975cd2223081749e107cc5a3a2 Mon Sep 17 00:00:00 2001 From: Mike Sawka Date: Tue, 17 Dec 2024 11:55:34 -0800 Subject: [PATCH] fix terminal escape sequence printing bug (#1544) ## Summary by CodeRabbit - **Bug Fixes** - Improved handling of terminal data processing by ensuring it only occurs when the terminal is fully initialized. --- frontend/app/view/term/termwrap.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/frontend/app/view/term/termwrap.ts b/frontend/app/view/term/termwrap.ts index 84c940ca3..0ab2ea634 100644 --- a/frontend/app/view/term/termwrap.ts +++ b/frontend/app/view/term/termwrap.ts @@ -165,6 +165,9 @@ export class TermWrap { } handleTermData(data: string) { + if (!this.loaded) { + return; + } const b64data = util.stringToBase64(data); RpcApi.ControllerInputCommand(TabRpcClient, { blockid: this.blockId, inputdata64: b64data }); }