terminal/sgr library

Properties

grayscaleColors FastLookupTable<int>
final

Functions

parse8BitSgrColour(int colNum, Terminal terminal) int
parseAnsiColour(List<int> params, int offset, Terminal terminal) List<int>
parse a color from params starting from offset. Returns a list with 2 entries. Index 0 = color, Index 1 = number of params used
sgrHandler(CSI csi, Terminal terminal) → void
SGR selects one or more character attributes at the same time. Multiple params (up to 32) are applied from in order from left to right. The changed attributes are applied to all new characters received. If you move characters in the viewport by scrolling or any other means, then the attributes move with the characters.