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
interface Chain
import { type Chain } from "https://deno.land/x/cliffy@v0.20.1/ansi/mod.ts?s=Chain";

Chainable ansi escape method declarations.

Properties

text: (text: string) => T[src]

Add text.

bel: T[src]

Ring audio bell: \u0007

cursorPosition: T[src]

Get cursor position.

cursorTo: (x: number, y?: number) => T[src]

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

cursorMove: (x: number, y: number) => T[src]

Move cursor by offset.

cursorUp: T & ((count: number) => T)[src]

Move cursor up by n lines.

cursorDown: T & ((count: number) => T)[src]

Move cursor down by n lines.

cursorForward: T & ((count: number) => T)[src]

Move cursor forward by n lines.

cursorBackward: T & ((count: number) => T)[src]

Move cursor backward by n lines.

cursorNextLine: T & ((count: number) => T)[src]

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

cursorPrevLine: T & ((count: number) => T)[src]

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

cursorLeft: T[src]

Move cursor to first column of current row.

cursorHide: T[src]

Hide cursor.

cursorShow: T[src]

Show cursor.

cursorSave: T[src]

Save cursor.

cursorRestore: T[src]

Restore cursor.

scrollUp: T & ((count: number) => T)[src]

Scroll window up by n lines.

scrollDown: T & ((count: number) => T)[src]

Scroll window down by n lines.

eraseScreen: T[src]

Clear screen.

eraseUp: T & ((count: number) => T)[src]

Clear screen up by n lines.

eraseDown: T & ((count: number) => T)[src]

Clear screen down by n lines.

eraseLine: T[src]

Clear current line.

eraseLineEnd: T[src]

Clear to line end.

eraseLineStart: T[src]

Clear to line start.

eraseLines: (count: number) => T[src]

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

clearScreen: T[src]

Clear the terminal screen. (Viewport)

clearTerminal: T[src]

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

image: (buffer: string | ArrayBuffer, options?: ImageOptions) => T[src]

Create image.

import Chain
import { Chain } from "https://deno.land/x/cliffy@v0.20.1/ansi/mod.ts?s=Chain";