Terminal · build on Windows: set alacritty's Windows-only escape_args

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.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
JetSquirrelandClaude Opus 5.5 authored and 雷电芽衣 committed 2026-10-03 01:01:17 -04:00
1 parent 7380afb419
commit a6119f1e4e
1 file changed
+2
+2
View File
@@ -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)?;