Skip to content

Rust bindings in Deno to determine the size of the terminal

Notifications You must be signed in to change notification settings

jhechtf/deno-terminal-size

Repository files navigation

Deno Terminal Size

Get the size of the terminal in Deno. Useful for CLI apps written for the Deno runtime.

Usage

Include the library, and utilize either the getHeight, getWidth or getSize function to determine the size of the terminal.

import {
  getHeight,
  getSize,
  getWidth,
} from 'https://deno.land/x/terminal_size/mod.ts';

const size = getSize();
const height = getHeight();
const width = getWidth();

Sponsorship

Brought to you by Shenanigans.

About

Rust bindings in Deno to determine the size of the terminal

Resources

Stars

Watchers

Forks

Packages