Module

x/cliffy/mod.ts>AnsiEscape

Command line framework for deno 🦕 Including Commandline-Interfaces, Prompts, CLI-Table, Arguments Parser and more...
Extremely Popular
Go to Latest
class AnsiEscape
import { AnsiEscape } from "https://dotland.deno.dev/x/cliffy@v0.13.0/mod.ts";

Constructors

new
protected
AnsiEscape(file: Deno.WriterSync)

Methods

cursorBackward(count?: number): this

Move cursor left by n lines.

cursorDown(count?: number): this

Move cursor down by n lines.

cursorForward(count?: number): this

Move cursor right by n lines.

cursorHide(): this

Hide cursor.

cursorLeft(): this

Move cursor to first column of current row.

cursorMove(x: number, y: number): this

Move cursor by offset.

cursorNextLine(count?: number): this

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

cursorPrevLine(count?: number): this

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

Restore cursor.

cursorSave(): this

Save cursor.

cursorShow(): this

Show cursor.

cursorTo(x: number, y?: number): this

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

cursorUp(count?: number): this

Move cursor up by n lines.

eraseDown(count?: number): this

Clear screen down.

eraseLine(): this

Clear current line.

eraseLineEnd(): this

Clear to line end.

eraseLines(count: number): this

Clear n line's up.

Clear to line start.

eraseScreen(): this

Clear screen.

eraseUp(count?: number): this

Clear screen up.

image(buffer: Uint8Array, options?: ImageOptions): this

Render image.

scrollDown(count?: number): this

Scroll window down by n lines.

scrollUp(count?: number): this

Scroll window up by n lines.

write(code: string): this

Write to file.

Static Methods

Create instance from file.

import AnsiEscape
import { AnsiEscape } from "https://dotland.deno.dev/x/cliffy@v0.13.0/mod.ts";