From 2f7ba53d39ac8c1884917b5d5d671b65162777bf Mon Sep 17 00:00:00 2001 From: SquitchYT Date: Sat, 3 Jun 2023 19:29:12 +0200 Subject: [PATCH 1/3] :bug: Fix terminal not showing content at load --- src/ts/class/terminal.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ts/class/terminal.ts b/src/ts/class/terminal.ts index cc8993f..d9d64bf 100644 --- a/src/ts/class/terminal.ts +++ b/src/ts/class/terminal.ts @@ -54,6 +54,7 @@ export class Terminal { this.term.onRender(() => { this.fitAddon.fit(); invoke("resize_terminal", {cols: this.term.cols, rows: this.term.rows, id: this.id}); + this.term.write("\0"); }) } From d0d48faeaf411f51af0b1216e748fe09877792c0 Mon Sep 17 00:00:00 2001 From: SquitchYT Date: Tue, 13 Jun 2023 15:07:41 +0200 Subject: [PATCH 2/3] :bug: Fix terminal resize with 2 or more tabs --- src/style/term.scss | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/style/term.scss b/src/style/term.scss index c5adc2f..ea087a2 100644 --- a/src/style/term.scss +++ b/src/style/term.scss @@ -22,6 +22,10 @@ .internal-term { height: calc(100% - 30px); width: 100%; + + canvas { + will-change: transform; + } } } } From eb0008594c512d91845dbee8a194da0a56f60d6f Mon Sep 17 00:00:00 2001 From: SquitchYT Date: Wed, 14 Jun 2023 20:22:28 +0200 Subject: [PATCH 3/3] :bug: Fix the F10 touch not handled by the shell --- src/ts/class/terminal.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/ts/class/terminal.ts b/src/ts/class/terminal.ts index d9d64bf..b9a86cb 100644 --- a/src/ts/class/terminal.ts +++ b/src/ts/class/terminal.ts @@ -41,6 +41,17 @@ export class Terminal { console.error(error); }); }) + + + this.term.attachCustomKeyEventHandler((e) => { + if (e.key == "F10") { + invoke("terminal_input", {content: "\x1b[21~", id: id}); + + return false + } else { + return true + } + }) } async launch(target: HTMLElement, command: string) {