Return the Curses color number for a given color string. Definition at line 128 of file gui_draw.c. 00129 { 00130 if (strcmp(name, "black") == 0) 00131 return (COLOR_BLACK); 00132 else if (strcmp(name, "red") == 0) 00133 return (COLOR_RED); 00134 else if (strcmp(name, "green") == 0) 00135 return (COLOR_GREEN); 00136 else if (strcmp(name, "yellow") == 0) 00137 return (COLOR_YELLOW); 00138 else if (strcmp(name, "blue") == 0) 00139 return (COLOR_BLUE); 00140 else if (strcmp(name, "magenta") == 0) 00141 return (COLOR_MAGENTA); 00142 else if (strcmp(name, "cyan") == 0) 00143 return (COLOR_CYAN); 00144 else if (strcmp(name, "white") == 0) 00145 return (COLOR_WHITE); 00146 #ifdef NCURSES_VERSION 00147 else if (strcmp(name, "default") == 0) 00148 return (-1); 00149 #endif /* NCURSES_VERSION */ 00150 00151 return (-2); 00152 }
Here is the caller graph for this function:
![]() |
1.6.3