Ansi
Colors
Signature
declare const bgBlack: AnsiSignature
declare const bgBlackBright: AnsiSignature
declare const bgBlue: AnsiSignature
declare const bgBlueBright: AnsiSignature
declare const bgCyan: AnsiSignature
declare const bgCyanBright: AnsiSignature
declare const bgGreen: AnsiSignature
declare const bgGreenBright: AnsiSignature
declare const bgMagenta: AnsiSignature
declare const bgMagentaBright: AnsiSignature
declare const bgRed: AnsiSignature
declare const bgRedBright: AnsiSignature
declare const bgWhite: AnsiSignature
declare const bgWhiteBright: AnsiSignature
declare const bgYellow: AnsiSignature
declare const bgYellowBright: AnsiSignature
declare const black: AnsiSignature
declare const blackBright: AnsiSignature
declare const blue: AnsiSignature
declare const blueBright: AnsiSignature
declare const cyan: AnsiSignature
declare const cyanBright: AnsiSignature
declare const green: AnsiSignature
declare const greenBright: AnsiSignature
declare const magenta: AnsiSignature
declare const magentaBright: AnsiSignature
declare const red: AnsiSignature
declare const redBright: AnsiSignature
declare const white: AnsiSignature
declare const whiteBright: AnsiSignature
declare const yellow: AnsiSignature
declare const yellowBright: AnsiCommands
Play a beeping sound.
Signature
declare const beep: AnsiMoves the cursor backward by the specified number of columns (default 1)
relative to the current cursor position.
If the cursor is already at the edge of the screen, this has no effect.
Signature
declare const cursorBackward: (columns?: number) => AnsiMoves the cursor down by the specified number of lines (default 1)
relative to the current cursor position.
If the cursor is already at the edge of the screen, this has no effect.
Signature
declare const cursorDown: (lines?: number) => AnsiMoves the cursor forward by the specified number of columns (default 1)
relative to the current cursor position.
If the cursor is already at the edge of the screen, this has no effect.
Signature
declare const cursorForward: (columns?: number) => AnsiHides the cursor.
Signature
declare const cursorHide: AnsiMoves the cursor to the first column of the current row.
Signature
declare const cursorLeft: AnsiMove the cursor position the specified number of rows and columns
relative to the current cursor position.
If the cursor is already at the edge of the screen in either direction, then additional movement will have no effect.
Signature
declare const cursorMove: (column: number, row?: number) => AnsiMoves cursor to beginning of the line the specified number of rows down
(default 1).
Signature
declare const cursorNextLine: (rows?: number) => AnsiMoves cursor to beginning of the line the specified number of rows up
(default 1).
Signature
declare const cursorPrevLine: (rows?: number) => AnsiRestores the cursor position, encoding shift state and formatting attributes from the previous save, if any, otherwise resets these all to their defaults.
Signature
declare const cursorRestorePosition: AnsiSaves the cursor position, encoding shift state and formatting attributes.
Signature
declare const cursorSavePosition: AnsiShows the cursor.
Signature
declare const cursorShow: AnsiMoves the cursor to the specified row and column.
Though the ANSI Control Sequence for Cursor Position is 1-based, this
method takes row and column values starting from 0 and adjusts them to 1-
based values.
Signature
declare const cursorTo: (column: number, row?: number) => AnsiMoves the cursor up by the specified number of lines (default 1) relative
to the current cursor position.
If the cursor is already at the edge of the screen, this has no effect.
Signature
declare const cursorUp: (lines?: number) => AnsiClears from the current cursor position to the end of the screen.
The current cursor position does not change.
Signature
declare const eraseDown: AnsiClears from the current cursor position to the end of the current line.
The current cursor position does not change.
Signature
declare const eraseEndLine: AnsiClears the current line.
The current cursor position does not change.
Signature
declare const eraseLine: AnsiErase from the current cursor position up the specified amount of rows.
Signature
declare const eraseLines: (rows: number) => AnsiClears the entire screen and move the cursor to the upper left.
Signature
declare const eraseScreen: AnsiClears from the current cursor position to the start of the current line.
The current cursor position does not change.
Signature
declare const eraseStartLine: AnsiClears from the current cursor position to the beginning of the screen.
The current cursor position does not change.
Signature
declare const eraseUp: AnsiConstructors
Signature
declare const bgColor: (color: Color) => AnsiSignature
declare const bgColorBright: (color: Color) => AnsiSignature
declare const bold: AnsiSignature
declare const brightColor: (color: Color) => AnsiSignature
declare const color: (color: Color) => AnsiSignature
declare const italicized: AnsiSignature
declare const strikethrough: AnsiSignature
declare const underlined: AnsiDestructors
Model
Other
Symbol
Signature
declare const AnsiTypeId: unique symbolAnsiTypeId
typeSignature
type AnsiTypeId = typeof AnsiTypeId