feat(app): sync embedded terminal theme (#37931)
This commit is contained in:
parent
b67fda133a
commit
43e472bba7
6 changed files with 34 additions and 6 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue