x/cliffy/ansi/ansi.ts

Command line framework for deno 🦕 Including Commandline-Interfaces, Prompts, CLI-Table, Arguments Parser and more...
Extremely Popular
Go to Latest
import * as cliffy from "https://deno.land/x/cliffy@v0.20.1/ansi/ansi.ts";

Variables

Chainable ansi escape sequence's. If invoked as method, a new Ansi instance will be returned.

await Deno.stdout.write(
  new TextEncoder().encode(
    ansi.cursorTo(0, 0).eraseScreen(),
  ),
);

Or shorter:

await Deno.stdout.write(
  ansi.cursorTo(0, 0).eraseScreen.toBuffer(),
);

Interfaces

Ansi instance returned by all ansi escape properties.

Type Aliases

Chainable ansi escape sequence's. If invoked as method, a new Ansi instance will be returned.

Create new Ansi instance.