console_setcmap

Name

console_setcmap --  sets palette color map for console

Synopsis

int console_setcmap (int n_entries, unsigned char * red, unsigned char * green, unsigned char * blue);

Arguments

n_entries

number of entries in the palette (max 16)

red

value for red component of palette

green

value for green component of palette

blue

value for blue component of palette

Description

Sets global palette_cmap structure and activates the palette on the current console.

Note, this function is only for XPMAC compatibility.

Returns negative errno on error, or zero for success.