-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Open
Description
Version: Deno 2.4.7
OS: MacOS Sequoia, maybe others?
Assume here is a hello.ts file:
const writer = Deno.openSync('/dev/tty', { read: true, write: true });
try {
writer.writeSync(new TextEncoder().encode('Hello World!\n'));
} finally {
writer.close();
}Execute the file:
deno run --allow-read --allow-write --allow-env --allow-net --allow-run hello.tsExpected Result:
Hello World!
Actual Result:
error: Uncaught (in promise) NotCapable: Requires all access to "/dev/tty", run again with the --allow-all flag
const writer = Deno.openSync('/dev/tty', { read: true, write: true });
Metadata
Metadata
Assignees
Labels
No labels