feat(unstable): add Deno.consoleSize (#6520)

This commit is contained in:
Sebastien Filion 2020-07-10 10:07:12 -04:00 committed by GitHub
parent dc6b3ef714
commit 1bcc35b84a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 115 additions and 3 deletions

View file

@ -2,6 +2,10 @@
import { sendSync } from "./dispatch_json.ts";
export function consoleSize(rid: number): [number, number] {
return sendSync("op_console_size", { rid });
}
export function isatty(rid: number): boolean {
return sendSync("op_isatty", { rid });
}