set_colors
Description:
palette
specifies the new values for the 256 palette colors: 8 standard colors, their 8 bright counterparts, 6x6x6 color cube, and
24 grayscale colors.
Omitted entries will default to a hardcoded value.
palette.length
must be 0, 8, 16, 232 or 256.
If foreground
is null
and palette.length
is greater than 0, the new foreground color is taken from
palette
[7]. If background
is null
and palette.length
is greater than 0, the new background
color is taken from palette
[0].
Parameters:
this |
a Terminal |
foreground |
the new foreground color, or |
background |
the new background color, or |
palette |
the color palette |
palette_size |
the number of entries in |