You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've boiled the issue down to the smallest reproducible example I could manage:
// Set stdin to raw mode to capture individual key pressesDeno.stdin.setRaw(true);// Read key presses in a loopforawait(constchunkofDeno.stdin.readable){// Just break the moment we get anything keypress at allbreak;}// Turn off raw mode (this will produce an error)Deno.stdin.setRaw(false);
The error
error: Uncaught (in promise) BadResource: Bad resource ID
Deno.stdin.setRaw(false);
^
at Stdin.setRaw (ext:deno_io/12_io.js:154:5)
at file:///.../main.ts:11:12
at eventLoopTick (ext:core/01_core.js:178:7)