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