From d7c06b8a47364fb82eced39752eb85dc747706e1 Mon Sep 17 00:00:00 2001 From: Radon Rosborough Date: Wed, 4 Jan 2023 20:17:17 -0700 Subject: [PATCH] Aha!! --- backend/util.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/backend/util.js b/backend/util.js index fbcca3c..4fb8162 100644 --- a/backend/util.js +++ b/backend/util.js @@ -192,7 +192,9 @@ export function deptyify({ handlePtyInput, handlePtyExit }) { }); const proc = spawn( `${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, stdio: "inherit",