Colors
All available color/style formatters plus support flags.
- Import:
@kjanat/dreamcli - Export kind: interface
- Declared in:
node_modules/ansispeck/dist/whitespace.d.ts
Signatures
ts
interface Colors extends Palette, Factories<Formatter> {}Members
Properties
isColorSupported
Whether ANSI output is enabled.
ts
isColorSupported: boolean;isHyperlinkSupported
Whether link emits OSC 8 sequences. Independent of color.
ts
isHyperlinkSupported: boolean;link
Wrap text in an OSC 8 terminal hyperlink.
ts
link: LinkFormatter;space
Produce one space, or count spaces when provided.
ts
space: { (count?: number): string; };tab
Produce one tab, or count tabs when provided.
ts
tab: { (count?: number): string; };blink
ts
blink: Formatter;bold
ts
bold: Formatter;dim
ts
dim: Formatter;doubleUnderline
ts
doubleUnderline: Formatter;hidden
ts
hidden: Formatter;inverse
ts
inverse: Formatter;italic
ts
italic: Formatter;overline
ts
overline: Formatter;reset
ts
reset: Formatter;strikethrough
ts
strikethrough: Formatter;underline
ts
underline: Formatter;black
ts
black: Formatter;blue
ts
blue: Formatter;cyan
ts
cyan: Formatter;gray
ts
gray: Formatter;green
ts
green: Formatter;grey
ts
grey: Formatter;magenta
ts
magenta: Formatter;red
ts
red: Formatter;white
ts
white: Formatter;yellow
ts
yellow: Formatter;blackBright
ts
blackBright: Formatter;blueBright
ts
blueBright: Formatter;cyanBright
ts
cyanBright: Formatter;greenBright
ts
greenBright: Formatter;magentaBright
ts
magentaBright: Formatter;redBright
ts
redBright: Formatter;whiteBright
ts
whiteBright: Formatter;yellowBright
ts
yellowBright: Formatter;bgBlack
ts
bgBlack: Formatter;bgBlue
ts
bgBlue: Formatter;bgCyan
ts
bgCyan: Formatter;bgGreen
ts
bgGreen: Formatter;bgMagenta
ts
bgMagenta: Formatter;bgRed
ts
bgRed: Formatter;bgWhite
ts
bgWhite: Formatter;bgYellow
ts
bgYellow: Formatter;bgBlackBright
ts
bgBlackBright: Formatter;bgBlueBright
ts
bgBlueBright: Formatter;bgCyanBright
ts
bgCyanBright: Formatter;bgGreenBright
ts
bgGreenBright: Formatter;bgMagentaBright
ts
bgMagentaBright: Formatter;bgRedBright
ts
bgRedBright: Formatter;bgWhiteBright
ts
bgWhiteBright: Formatter;bgYellowBright
ts
bgYellowBright: Formatter;bg256
Set the background with a 256-color palette index.
ts
bg256: (n: number) => Formatter;bgHex
Set the background from a #rgb or #rrggbb hex string.
ts
bgHex: (color: string) => Formatter;bgRgb
Set the background with a 24-bit RGB triple.
ts
bgRgb: (r: number, g: number, b: number) => Formatter;fg256
Color the foreground with a 256-color palette index.
ts
fg256: (n: number) => Formatter;hex
Color the foreground from a #rgb or #rrggbb hex string.
ts
hex: (color: string) => Formatter;rgb
Color the foreground with a 24-bit RGB triple.
ts
rgb: (r: number, g: number, b: number) => Formatter;