fix unknown arg issue on ubuntu
This commit is contained in:
parent
fbcd3f77e9
commit
7ce02e45c8
2 changed files with 3 additions and 1 deletions
|
@ -62,7 +62,7 @@ class InputHandler {
|
|||
}
|
||||
|
||||
async read_one_char() {
|
||||
const args = ["-i0", "sh", "-c", "read -n 1 OUT; echo -n $OUT"];
|
||||
const args = ["-i0", "bash", "-c", "read -n 1 OUT; echo -n $OUT"];
|
||||
const command = new Deno.Command("stdbuf", { args, stdin: "inherit", stdout: "piped" });
|
||||
const output = await command.output();
|
||||
const result = new TextDecoder().decode(output.stdout);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue