import { type Chain } from "https://deno.land/x/cliffy@v0.18.0/mod.ts";
Chainable ansi escape method declarations.
Properties
text: (text: string) => T
Add text.
bel: T
Ring audio bell: \u0007
cursorPosition: T
Get cursor position.
cursorTo: (x: number, y?: number) => T
Move cursor to x, y, counting from the top left corner.
cursorMove: (x: number, y: number) => T
Move cursor by offset.
cursorLeft: T
Move cursor to first column of current row.
cursorHide: T
Hide cursor.
cursorShow: T
Show cursor.
cursorSave: T
Save cursor.
cursorRestore: T
Restore cursor.
eraseScreen: T
Clear screen.
eraseLine: T
Clear current line.
eraseLineEnd: T
Clear to line end.
eraseLineStart: T
Clear to line start.
eraseLines: (count: number) => T
Clear screen and move cursor by n lines up and move cursor to first column.
clearScreen: T
Clear the terminal screen. (Viewport)
clearTerminal: T
Clear the whole terminal, including scrollback buffer. (Not just the visible part of it).
link: (text: string, url: string) => T
Create link.
image: (buffer: string | ArrayBuffer, options?: ImageOptions) => T
Create image.