Skip to main content

deno_ansi

ANSI escape codes for manipulating the terminal.

base on sindresorhus/ansi-escapes

Document

Usage

import { cursorLeft, cursorUp } from "https://deno.land/x/ansi/mod.ts";

// Moves the cursor two rows up and to the left
console.log(cursorUp(2) + cursorLeft());
//=> '\u001B[2A\u001B[1000D'

License

deno_ansi is released under the MIT License. See the bundled LICENSE file for details.