2
* GRUB -- GRand Unified Bootloader
3
* Copyright (C) 2002,2003,2005,2007,2008 Free Software Foundation, Inc.
5
* GRUB is free software: you can redistribute it and/or modify
6
* it under the terms of the GNU General Public License as published by
7
* the Free Software Foundation, either version 3 of the License, or
8
* (at your option) any later version.
10
* GRUB is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
* GNU General Public License for more details.
15
* You should have received a copy of the GNU General Public License
16
* along with GRUB. If not, see <http://www.gnu.org/licenses/>.
19
#include <grub/i386/vga_common.h>
20
#include <grub/term.h>
21
#include <grub/types.h>
23
grub_uint8_t grub_console_cur_color = 0x7;
26
grub_console_getwh (struct grub_term_output *term __attribute__ ((unused)))
28
return (80 << 8) | 25;
32
grub_console_setcolorstate (struct grub_term_output *term,
33
grub_term_color_state state)
36
case GRUB_TERM_COLOR_STANDARD:
37
grub_console_cur_color = GRUB_TERM_DEFAULT_STANDARD_COLOR & 0x7f;
39
case GRUB_TERM_COLOR_NORMAL:
40
grub_console_cur_color = term->normal_color & 0x7f;
42
case GRUB_TERM_COLOR_HIGHLIGHT:
43
grub_console_cur_color = term->highlight_color & 0x7f;