<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"> <HTML ><HEAD ><TITLE >console_setcmap</TITLE ><META NAME="GENERATOR" CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><LINK REL="HOME" TITLE="The Linux Kernel API" HREF="book1.html"><LINK REL="UP" TITLE="Frame Buffer Macintosh Video Mode Database" HREF="x14371.html"><LINK REL="PREVIOUS" TITLE="console_setmode" HREF="r14402.html"><LINK REL="NEXT" TITLE="console_powermode" HREF="r14488.html"></HEAD ><BODY CLASS="REFENTRY" BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000FF" VLINK="#840084" ALINK="#0000FF" ><DIV CLASS="NAVHEADER" ><TABLE SUMMARY="Header navigation table" WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" ><TR ><TH COLSPAN="3" ALIGN="center" >The Linux Kernel API</TH ></TR ><TR ><TD WIDTH="10%" ALIGN="left" VALIGN="bottom" ><A HREF="r14402.html" ACCESSKEY="P" ><<< Previous</A ></TD ><TD WIDTH="80%" ALIGN="center" VALIGN="bottom" ></TD ><TD WIDTH="10%" ALIGN="right" VALIGN="bottom" ><A HREF="r14488.html" ACCESSKEY="N" >Next >>></A ></TD ></TR ></TABLE ><HR ALIGN="LEFT" WIDTH="100%"></DIV ><H1 ><A NAME="AEN14439" ></A ><SPAN CLASS="phrase" ><SPAN CLASS="PHRASE" >console_setcmap</SPAN ></SPAN ></H1 ><DIV CLASS="REFNAMEDIV" ><A NAME="AEN14443" ></A ><H2 >Name</H2 >console_setcmap -- sets palette color map for console </DIV ><DIV CLASS="REFSYNOPSISDIV" ><A NAME="AEN14446" ></A ><H2 >Synopsis</H2 ><DIV CLASS="FUNCSYNOPSIS" ><A NAME="AEN14448" ></A ><P ></P ><P ><CODE ><CODE CLASS="FUNCDEF" >int <TT CLASS="FUNCTION" >console_setcmap </TT ></CODE >(int <TT CLASS="PARAMETER" ><I >n_entries</I ></TT >, unsigned char * <TT CLASS="PARAMETER" ><I >red</I ></TT >, unsigned char * <TT CLASS="PARAMETER" ><I >green</I ></TT >, unsigned char * <TT CLASS="PARAMETER" ><I >blue</I ></TT >);</CODE ></P ><P ></P ></DIV ></DIV ><DIV CLASS="REFSECT1" ><A NAME="AEN14460" ></A ><H2 >Arguments</H2 ><P ></P ><DIV CLASS="VARIABLELIST" ><DL ><DT ><TT CLASS="PARAMETER" ><I >n_entries</I ></TT ></DT ><DD ><P > number of entries in the palette (max 16) </P ></DD ><DT ><TT CLASS="PARAMETER" ><I >red</I ></TT ></DT ><DD ><P > value for red component of palette </P ></DD ><DT ><TT CLASS="PARAMETER" ><I >green</I ></TT ></DT ><DD ><P > value for green component of palette </P ></DD ><DT ><TT CLASS="PARAMETER" ><I >blue</I ></TT ></DT ><DD ><P > value for blue component of palette </P ></DD ></DL ></DIV ></DIV ><DIV CLASS="REFSECT1" ><A NAME="AEN14483" ></A ><H2 >Description</H2 ><P > Sets global palette_cmap structure and activates the palette on the current console. </P ><P > Note, this function is only for XPMAC compatibility. </P ><P > Returns negative errno on error, or zero for success. </P ></DIV ><DIV CLASS="NAVFOOTER" ><HR ALIGN="LEFT" WIDTH="100%"><TABLE SUMMARY="Footer navigation table" WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" ><A HREF="r14402.html" ACCESSKEY="P" ><<< Previous</A ></TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="book1.html" ACCESSKEY="H" >Home</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" ><A HREF="r14488.html" ACCESSKEY="N" >Next >>></A ></TD ></TR ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" ><SPAN CLASS="phrase" ><SPAN CLASS="PHRASE" >console_setmode</SPAN ></SPAN ></TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="x14371.html" ACCESSKEY="U" >Up</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" ><SPAN CLASS="phrase" ><SPAN CLASS="PHRASE" >console_powermode</SPAN ></SPAN ></TD ></TR ></TABLE ></DIV ></BODY ></HTML >