Ansi
Chainable ansi escape sequences.
Usage
Ansi escape sequences
The ansi and tty module can be used to generate or write ansi escape sequences to stdout.
import { tty } from "https://deno.land/x/cliffy@v1.0.0-rc.4/ansi/tty.ts";
tty.cursorSave
.cursorHide
.cursorTo(0, 0)
.eraseScreen();
Copy
Colors
The colors module is a simple and tiny chainable wrapper for deno’s std colors module and works similar to node’s chalk module.
import { colors } from "https://deno.land/x/cliffy@v1.0.0-rc.4/ansi/colors.ts";
console.log(
colors.bold.underline.rgb24("Welcome to Deno.Land!", 0xff3333),
);
Copy