feat(app): sync embedded terminal theme (#37931)

This commit is contained in:
Luke Parker 2026-07-21 00:22:26 +10:00 committed by GitHub
commit 43e472bba7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 34 additions and 6 deletions

View file

@ -4,7 +4,10 @@ import type { Opts, Proc } from "./pty"
export type { Disp, Exit, Opts, Proc } from "./pty"
export function spawn(file: string, args: string[], opts: Opts): Proc {
const proc = pty.spawn(file, args, opts)
const proc = pty.spawn(file, args, {
...opts,
...(process.platform === "win32" ? { useConptyDll: true } : {}),
})
return {
pid: proc.pid,
onData(listener) {