@jsvision/core / StyleEncoder
Type Alias: StyleEncoder
StyleEncoder = (
fg,bg,attrs,caps) =>string
Defined in: render/serialize.ts:25
Encodes a cell's foreground/background/attributes to an SGR escape sequence for the terminal's color depth. Defaults to defaultEncodeStyle; supply your own via RenderOptions.encodeStyle to customise color output.
Parameters
fg
bg
attrs
caps
Returns
string