Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/cliffy/ansi/mod.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@v1.0.0-rc.4/ansi/mod.ts";

Variables

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

Ring audio bell: \u0007

Clear the terminal screen. (Viewport)

Clear the whole terminal, including scrollback buffer. (Not just the visible part of it).

Chainable colors module.

Hide cursor.

Move cursor to first column of current row.

Get cursor position.

Restore cursor.

Save cursor.

Show cursor.

Clear current line.

Clear to line end.

Clear to line start.

Clear screen.

Chainable ansi escape sequences. If invoked as method, a new Tty instance will be returned.

Functions

Move cursor backward by n lines.

Move cursor down by n lines.

Move cursor forward by n lines.

Move cursor by offset.

Move cursor to the beginning of the line n lines down.

Move cursor to the beginning of the line n lines up.

Move cursor to x, y, counting from the top left corner.

Move cursor up by n lines.

Clear screen down by n lines.

Clear screen and move cursor by n lines up and move cursor to first column.

Clear screen up by n lines.

Get cursor position.

Create image.

Create link.

Scroll window down by n lines.

Scroll window up by n lines.

Interfaces

Ansi instance returned by all ansi escape properties.

Chainable ansi escape method declarations.

Cursor position.

Cursor position options.

Image options.

Ansi instance returned by all ansi escape properties.

Create new Ansi instance.

Type Aliases

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

Create new Ansi instance.

Chainable colors module. If invoked as method, a new Colors instance will be returned.

Chainable colors instance returned by all ansi escape properties.

Create new Colors instance.

Chainable ansi escape sequences. If invoked as method, a new Tty instance will be returned.

Create new Tty instance.