Skip to content

StyleTextOptions

StyleTextOptions = object

Defined in: packages/format-ansi/src/color.ts:29

optional background?: Rgb8

Defined in: packages/format-ansi/src/color.ts:33


optional colorDepth?: ColorDepth

Defined in: packages/format-ansi/src/color.ts:38

Downsamples requested colors to what this depth can render. Default 24 (no downsampling).


optional foreground?: Rgb8

Defined in: packages/format-ansi/src/color.ts:32


optional styles?: readonly SgrStyleName[]

Defined in: packages/format-ansi/src/color.ts:31

SGR attributes to apply, e.g. ["bold", "underline"].