setAnsiPalette

abstract fun setAnsiPalette(ansiColors: IntArray): Int(source)

Set ANSI palette colors (indices 0-15).

This configures the 16 ANSI colors used by terminal escape sequences. Changing the palette triggers a full redraw with new colors.

Return

Number of colors set, or -1 on error

Parameters

ansiColors

IntArray of ARGB colors (size 16 for all ANSI colors)