Skip to content
This repository was archived by the owner on Jan 15, 2025. It is now read-only.

Commit c36231f

Browse files
authored
terminal copy and paste (#748)
1 parent 472b257 commit c36231f

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "tea",
3-
"version": "0.2.47",
3+
"version": "0.2.48",
44
"private": true,
55
"description": "tea gui app",
66
"author": "tea.xyz",

svelte/src/components/terminal/terminal.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@
2525
terminal.open(document.getElementById("terminal")!);
2626
fitAddon.fit();
2727
28-
terminal.onKey((e) => {
29-
sendStdInToPty({ project, data: e.key });
28+
terminal.onData((data: string) => {
29+
sendStdInToPty({ project, data });
3030
});
3131
3232
unsubscribe = ptys.subscribeToSubprocess(project, (ptyouts: TeaSubprocess) => {

0 commit comments

Comments
 (0)