/*
* GRUB -- GRand Unified Bootloader
* Copyright (C) 1999,2000,2001,2002,2003,2004,2008 Free Software Foundation, Inc.
*
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* GRUB is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GRUB. If not, see <http://www.gnu.org/licenses/>.
*/
/* Borrowed from GRUB Legacy */
{
"black",
"blue",
"green",
"cyan",
"red",
"magenta",
"brown",
"light-gray",
"dark-gray",
"light-blue",
"light-green",
"light-cyan",
"light-red",
"light-magenta",
"yellow",
"white"
};
static int
{
grub_uint8_t i;
for (i = 0; i < sizeof (color_list) / sizeof (*color_list); i++)
{
*ret = i;
return 0;
}
return -1;
}
int
{
/* nothing specified by user */
return result;
{
/* "out of memory" message was printed by grub_strdup() */
return result;
}
{
goto free_and_return;
}
*(bg_name++) = '\0';
{
goto free_and_return;
}
{
goto free_and_return;
}
result = 0;
return result;
}
static void
set_colors (void)
{
{
/* Reloads terminal `normal' and `highlight' colors. */
/* Propagates `normal' color to terminal current color. */
}
}
/* Replace default `normal' colors with the ones specified by user (if any). */
char *
const char *val)
{
return NULL;
set_colors ();
return grub_strdup (val);
}
/* Replace default `highlight' colors with the ones specified by user (if any). */
char *
const char *val)
{
return NULL;
set_colors ();
return grub_strdup (val);
}