Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/dxx/src/lib/consoleSize.ts>consoleSizeViaTPUT

🚀 (Deno) enhanced executor
Latest
function consoleSizeViaTPUT
import { consoleSizeViaTPUT } from "https://deno.land/x/dxx@rf/src/lib/consoleSize.ts";

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

const { columns, rows } = await consoleSizeViaTPUT();

Returns

Promise<ConsoleSize | undefined>