Skip to main content
Deno 2 is finally here ๐ŸŽ‰๏ธ
Learn more
Module

x/dxx/src/lib/consoleSize.ts

๐Ÿš€ (Deno) enhanced executor
Latest
import * as dxx from "https://deno.land/x/dxx@rf/src/lib/consoleSize.ts";

Variables

Get the size of the console used by rid as columns/rows, using options.

  • async

Functions

Get the size of the console used by rid as columns/rows, using options.

  • async
  • results are cached; cache may be disabled via the { useCache: false } option
  • a fast synchronous method (with fallback to multiple racing asynchronous methods) is used for a robust, yet quick, result

Get the size of the console used by rid as columns/rows, using options.

  • unstable ~ requires the Deno --unstable flag for successful resolution (b/c the used Deno.consoleSize() function is unstable API [as of Deno v1.19.0, 2022-02-17])
  • results are cached; cached entries will be ignored/skipped when using the { useCache: false } option

Get the size of the console used by rid as columns/rows, using options, via the Deno API.

  • unstable ~ requires the Deno --unstable flag for successful resolution (b/c the used Deno.consoleSize() function is unstable API [as of Deno v1.19.0, 2022-02-17])

Get the size of the console as columns/rows, using the mode shell command.

Get the size of the console as columns/rows, using PowerShell.

Get the size of the console as columns/rows, using the stty shell command.

Get the size of the console as columns/rows, using the tput shell command.

Type Aliases

Options for ConsoleSize functions ...

  • consoleFileFallback ~ fallback to use of a "console" file if rid and fallback(s) fail ; default = true
  • fallbackRIDs ~ list of fallback resource IDs if initial rid fails ; default = Deno.stderr.rid
  • useCache ~ cache/memoize prior values ; default = true