From 943b7d4f8d4abcceea5fafe249adad939d11be82 Mon Sep 17 00:00:00 2001 From: JetSquirrel Date: Fri, 2 Oct 2026 12:31:46 +0800 Subject: [PATCH] =?UTF-8?q?Terminal=20=C2=B7=20build=20on=20Windows:=20set?= =?UTF-8?q?=20alacritty's=20Windows-only=20escape=5Fargs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit alacritty_terminal 0.26's tty::Options has a field that exists only on Windows, so the crate failed to compile there with E0063. Each launch argument is one argv entry, so they are escaped by the C runtime rules. --- src/terminal/pty.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/terminal/pty.rs b/src/terminal/pty.rs index 2521900..30591c5 100644 --- a/src/terminal/pty.rs +++ b/src/terminal/pty.rs @@ -83,6 +83,8 @@ pub(crate) fn spawn(launch: &Launch, size: TermSize, cell: (u16, u16)) -> anyhow working_directory: launch.cwd.clone(), drain_on_exit: true, env, + #[cfg(target_os = "windows")] + escape_args: true, }; let pty = tty::new(&options, window_size(&size, cell), 0)?; let event_loop = EventLoop::new(term.clone(), listener, pty, true, false)?;