Skip to content

Variable ANSI

const ANSI: { fg: { black: string; red: string; green: string; yellow: string; blue: string; magenta: string; cyan: string; white: string; }; bg: { }; decoration: { dim: string; bold: string; }; reset: string; }

Source: ansi.const.ts

ANSI escape codes.

Type Declaration

fg

fg: { black: string; red: string; green: string; yellow: string; blue: string; magenta: string; cyan: string; white: string; }

Foreground colors.

fg.black

black: string = "\u001b[30m"

fg.red

red: string = "\u001b[31m"

fg.green

green: string = "\u001b[32m"

fg.yellow

yellow: string = "\u001b[33m"

fg.blue

blue: string = "\u001b[34m"

fg.magenta

magenta: string = "\u001b[35m"

fg.cyan

cyan: string = "\u001b[36m"

fg.white

white: string = "\u001b[37m"

bg

bg: { } = {}

Background colors.

decoration

decoration: { dim: string; bold: string; }

Decorations.

decoration.dim

dim: string = "\u001b[2m"

decoration.bold

bold: string = "\u001b[1m"

reset

reset: string = "\u001b[0m"

See

ANSI escape code - Wikipedia

Built by Prozilla