Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Deno read one symbol
#!/usr/bin/env -S deno run --unstable
while (true) {
const buffer = new Uint8Array(1);
Deno.setRaw(0, true);
await Deno.stdin.read(buffer);
Deno.setRaw(0, false);
console.log(buffer);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment