From c36231f8f729ac3ab6fcc6402c37627342e4ce96 Mon Sep 17 00:00:00 2001 From: ABevier Date: Mon, 24 Jul 2023 19:51:46 -0400 Subject: [PATCH] terminal copy and paste (#748) --- package.json | 2 +- svelte/src/components/terminal/terminal.svelte | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 4eec9969..51d854f5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "tea", - "version": "0.2.47", + "version": "0.2.48", "private": true, "description": "tea gui app", "author": "tea.xyz", diff --git a/svelte/src/components/terminal/terminal.svelte b/svelte/src/components/terminal/terminal.svelte index 9cb14ce5..78e2ca0f 100644 --- a/svelte/src/components/terminal/terminal.svelte +++ b/svelte/src/components/terminal/terminal.svelte @@ -25,8 +25,8 @@ terminal.open(document.getElementById("terminal")!); fitAddon.fit(); - terminal.onKey((e) => { - sendStdInToPty({ project, data: e.key }); + terminal.onData((data: string) => { + sendStdInToPty({ project, data }); }); unsubscribe = ptys.subscribeToSubprocess(project, (ptyouts: TeaSubprocess) => {