This commit is contained in:
Radon Rosborough 2023-01-04 20:17:17 -07:00
parent d23cf6b81f
commit d7c06b8a47
1 changed files with 3 additions and 1 deletions

View File

@ -192,7 +192,9 @@ export function deptyify({ handlePtyInput, handlePtyExit }) {
}); });
const proc = spawn( const proc = spawn(
`${process.cwd()}/system/out/riju-pty`, `${process.cwd()}/system/out/riju-pty`,
["-f", "sh", "-c", "cat > input & cat output"], // Order is important, stdin can't be read properly from
// the background without more configuration
["-f", "sh", "-c", "cat output & cat > input"],
{ {
cwd: dir.path, cwd: dir.path,
stdio: "inherit", stdio: "inherit",