Fix mismatched variables

This commit is contained in:
Radon Rosborough 2023-01-04 18:29:14 -07:00
parent ddb0084b0c
commit 8210b8bee9
1 changed files with 2 additions and 2 deletions

View File

@ -191,7 +191,7 @@ export function deptyify({ handlePtyInput, handlePtyExit }) {
const input = new TailFile(`${dir.path}/input`, {
encoding: "utf-8",
});
input.on("data", (data) => handlePtyOutput(data));
input.on("data", (data) => handlePtyInput(data));
input.on("tail_error", logError);
input.on("error", logError);
await input.start();
@ -209,7 +209,7 @@ export function deptyify({ handlePtyInput, handlePtyExit }) {
});
resolve({
handlePtyOutput: async (data) => {
await input.write(data);
await output.write(data);
},
});
},