Fix mismatched variables
This commit is contained in:
parent
ddb0084b0c
commit
8210b8bee9
|
@ -191,7 +191,7 @@ export function deptyify({ handlePtyInput, handlePtyExit }) {
|
||||||
const input = new TailFile(`${dir.path}/input`, {
|
const input = new TailFile(`${dir.path}/input`, {
|
||||||
encoding: "utf-8",
|
encoding: "utf-8",
|
||||||
});
|
});
|
||||||
input.on("data", (data) => handlePtyOutput(data));
|
input.on("data", (data) => handlePtyInput(data));
|
||||||
input.on("tail_error", logError);
|
input.on("tail_error", logError);
|
||||||
input.on("error", logError);
|
input.on("error", logError);
|
||||||
await input.start();
|
await input.start();
|
||||||
|
@ -209,7 +209,7 @@ export function deptyify({ handlePtyInput, handlePtyExit }) {
|
||||||
});
|
});
|
||||||
resolve({
|
resolve({
|
||||||
handlePtyOutput: async (data) => {
|
handlePtyOutput: async (data) => {
|
||||||
await input.write(data);
|
await output.write(data);
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue