()
| 36 | } |
| 37 | |
| 38 | function shellCommand(): string { |
| 39 | if (process.platform === "win32") return "powershell.exe" |
| 40 | return process.env.SHELL || "/bin/bash" |
| 41 | } |
| 42 | |
| 43 | function bufferOutput(state: ActivePty, data: string): void { |
| 44 | state.output.push(data) |