mirror of
https://github.com/denoland/deno.git
synced 2025-09-30 22:21:15 +00:00
feat(unstable): add Deno.consoleSize (#6520)
This commit is contained in:
parent
dc6b3ef714
commit
1bcc35b84a
5 changed files with 115 additions and 3 deletions
|
@ -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 });
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue