From 6e6bd1e1710be0d1daa481c0005ddd8e6cc093c4 Mon Sep 17 00:00:00 2001 From: Adam <2363879+adamdotdevin@users.noreply.github.com> Date: Fri, 5 Dec 2025 12:05:30 -0600 Subject: fix(desktop): terminal cursor position --- packages/desktop/src/components/terminal.tsx | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'packages/desktop/src/components') diff --git a/packages/desktop/src/components/terminal.tsx b/packages/desktop/src/components/terminal.tsx index f7b44b0aa..aaf5da880 100644 --- a/packages/desktop/src/components/terminal.tsx +++ b/packages/desktop/src/components/terminal.tsx @@ -52,19 +52,14 @@ export const Terminal = (props: TerminalProps) => { term.open(container) if (local.pty.buffer) { - const originalSize = { cols: term.cols, rows: term.rows } - let resized = false if (local.pty.rows && local.pty.cols) { term.resize(local.pty.cols, local.pty.rows) - resized = true } + term.reset() term.write(local.pty.buffer) if (local.pty.scrollY) { term.scrollToLine(local.pty.scrollY) } - if (resized) { - term.resize(originalSize.cols, originalSize.rows) - } } container.focus() -- cgit v1.2.3