diff options
author | Sebastien Filion <sebastienfilion@mac.com> | 2020-07-10 10:07:12 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-10 10:07:12 -0400 |
commit | 1bcc35b84a78fb052b8092b7ed57c2ce763f5d4b (patch) | |
tree | 913a4533901ba35bf47012009c0fa4c88b8ebe60 /cli/js/ops | |
parent | dc6b3ef714c743358703512cd766aed4abc8bd3b (diff) |
feat(unstable): add Deno.consoleSize (#6520)
Diffstat (limited to 'cli/js/ops')
-rw-r--r-- | cli/js/ops/tty.ts | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cli/js/ops/tty.ts b/cli/js/ops/tty.ts index 8899ca5b8..f9da7bd0d 100644 --- a/cli/js/ops/tty.ts +++ b/cli/js/ops/tty.ts @@ -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 }); } |