diff --git a/.gitignore b/.gitignore index 688e137..59117af 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,3 @@ /deno.lock + +*.log diff --git a/client/main.ts b/client/main.ts index 3eb10e9..e2af318 100755 --- a/client/main.ts +++ b/client/main.ts @@ -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);