Ansi
Colors
Signature
declare const bgBlack: Ansi;bgBlackBright
Signature
declare const bgBlackBright: Ansi;Signature
declare const bgBlue: Ansi;bgBlueBright
Signature
declare const bgBlueBright: Ansi;Signature
declare const bgCyan: Ansi;bgCyanBright
Signature
declare const bgCyanBright: Ansi;Signature
declare const bgGreen: Ansi;bgGreenBright
Signature
declare const bgGreenBright: Ansi;Signature
declare const bgMagenta: Ansi;bgMagentaBright
Signature
declare const bgMagentaBright: Ansi;Signature
declare const bgRed: Ansi;bgRedBright
Signature
declare const bgRedBright: Ansi;Signature
declare const bgWhite: Ansi;bgWhiteBright
Signature
declare const bgWhiteBright: Ansi;Signature
declare const bgYellow: Ansi;bgYellowBright
Signature
declare const bgYellowBright: Ansi;Signature
declare const black: Ansi;blackBright
Signature
declare const blackBright: Ansi;Signature
declare const blue: Ansi;blueBright
Signature
declare const blueBright: Ansi;Signature
declare const cyan: Ansi;cyanBright
Signature
declare const cyanBright: Ansi;Signature
declare const green: Ansi;greenBright
Signature
declare const greenBright: Ansi;Signature
declare const magenta: Ansi;magentaBright
Signature
declare const magentaBright: Ansi;Signature
declare const red: Ansi;Signature
declare const redBright: Ansi;Signature
declare const white: Ansi;whiteBright
Signature
declare const whiteBright: Ansi;Signature
declare const yellow: Ansi;yellowBright
Signature
declare const yellowBright: Ansi;Commands
Signature
declare const beep: Ansi;cursorBackward
Moves 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) => Ansi;cursorDown
Moves 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) => Ansi;cursorForward
Moves 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) => Ansi;cursorHide
Hides the cursor.
Signature
declare const cursorHide: Ansi;cursorLeft
Moves the cursor to the first column of the current row.
Signature
declare const cursorLeft: Ansi;cursorMove
Move 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) => Ansi;cursorNextLine
Moves cursor to beginning of the line the specified number of rows down (default 1).
Signature
declare const cursorNextLine: (rows?: number) => Ansi;cursorPrevLine
Moves cursor to beginning of the line the specified number of rows up (default 1).
Signature
declare const cursorPrevLine: (rows?: number) => Ansi;cursorRestorePosition
Restores 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: Ansi;cursorSavePosition
Saves the cursor position, encoding shift state and formatting attributes.
Signature
declare const cursorSavePosition: Ansi;cursorShow
Shows the cursor.
Signature
declare const cursorShow: Ansi;Moves 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) => Ansi;Moves 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) => Ansi;Clears from the current cursor position to the end of the screen.
The current cursor position does not change.
Signature
declare const eraseDown: Ansi;eraseEndLine
Clears from the current cursor position to the end of the current line.
The current cursor position does not change.
Signature
declare const eraseEndLine: Ansi;Clears the current line.
The current cursor position does not change.
Signature
declare const eraseLine: Ansi;eraseLines
Erase from the current cursor position up the specified amount of rows.
Signature
declare const eraseLines: (rows: number) => Ansi;eraseScreen
Clears the entire screen and move the cursor to the upper left.
Signature
declare const eraseScreen: Ansi;eraseStartLine
Clears from the current cursor position to the start of the current line.
The current cursor position does not change.
Signature
declare const eraseStartLine: Ansi;Clears from the current cursor position to the beginning of the screen.
The current cursor position does not change.
Signature
declare const eraseUp: Ansi;Constructors
Signature
declare const bgColor: (color: Color) => Ansi;bgColorBright
Signature
declare const bgColorBright: (color: Color) => Ansi;Signature
declare const bold: Ansi;brightColor
Signature
declare const brightColor: (color: Color) => Ansi;Signature
declare const color: (color: Color) => Ansi;italicized
Signature
declare const italicized: Ansi;strikethrough
Signature
declare const strikethrough: Ansi;underlined
Signature
declare const underlined: Ansi;Destructors
Model
Other
Symbol
AnsiTypeId
Signature
declare const AnsiTypeId: unique symbol;AnsiTypeId type
Signature
type AnsiTypeId = typeof AnsiTypeId;
Play a beeping sound.