add symbolic color name syntax support into the command color.
This commit is contained in:
parent
191c0eea0a
commit
4e769ee998
5 changed files with 165 additions and 54 deletions
|
@ -719,80 +719,75 @@ Display the contents of the file @var{file}.
|
|||
Change the menu colors. The color @var{normal} is used for most
|
||||
lines in the menu, and the color @var{highlight} is used to highlight the
|
||||
line where the cursor points. If you omit @var{highlight}, then the
|
||||
inverted color of @var{normal} is used for the highlighted line. You
|
||||
must specify an integer for a color value, where bits 0-3 represent
|
||||
the foreground color, bits 4-6 represent the background color, and
|
||||
bit 7 indicates that the foreground blinks.
|
||||
inverted color of @var{normal} is used for the highlighted line.
|
||||
The format of a color is @code{@var{fg}/@var{bg}}. @var{fg} and @var{bg}
|
||||
are symbolic color names. A symbolic color name must be one of these:
|
||||
|
||||
These are the possible values and the meanings:
|
||||
|
||||
@table @asis
|
||||
@item 0
|
||||
@itemize @bullet
|
||||
@item
|
||||
black
|
||||
|
||||
@item 1
|
||||
@item
|
||||
blue
|
||||
|
||||
@item 2
|
||||
@item
|
||||
green
|
||||
|
||||
@item 3
|
||||
@item
|
||||
cyan
|
||||
|
||||
@item 4
|
||||
@item
|
||||
red
|
||||
|
||||
@item 5
|
||||
@item
|
||||
magenta
|
||||
|
||||
@item 6
|
||||
@item
|
||||
brown
|
||||
|
||||
@item 7
|
||||
light gray
|
||||
|
||||
@item
|
||||
light-gray
|
||||
|
||||
@strong{These below can be specified only for the foreground.}
|
||||
|
||||
@item 8
|
||||
dark gray
|
||||
@item
|
||||
dark-gray
|
||||
|
||||
@item 9
|
||||
light blue
|
||||
@item
|
||||
light-blue
|
||||
|
||||
@item A
|
||||
light green
|
||||
@item
|
||||
light-green
|
||||
|
||||
@item B
|
||||
light cyan
|
||||
@item
|
||||
light-cyan
|
||||
|
||||
@item C
|
||||
light red
|
||||
@item
|
||||
light-red
|
||||
|
||||
@item D
|
||||
light magenta
|
||||
@item
|
||||
light-magenta
|
||||
|
||||
@item E
|
||||
@item
|
||||
yellow
|
||||
|
||||
@item F
|
||||
@item
|
||||
white
|
||||
@end table
|
||||
@end itemize
|
||||
|
||||
The background is represented by 3 bits, so you cannot specify more than
|
||||
7 for it.
|
||||
But only the first eight names can be used for @var{bg}. You can prefix
|
||||
@code{blink-} to @var{fg} if you want a blinking foreground color.
|
||||
|
||||
This command can be used in the configuration file and on the
|
||||
command line, so you may write something like this in your configuration
|
||||
file:
|
||||
This command can be used in the configuration file and on the command
|
||||
line, so you may write something like this in your configuration file:
|
||||
|
||||
@example
|
||||
# Set default colors (light gray / blue, black / light gray).
|
||||
color 0x17 0x70
|
||||
# Set default colors.
|
||||
color light-gray/blue black/light-gray
|
||||
|
||||
# Change the colors.
|
||||
title OS-BS like
|
||||
color 0x16 0x60
|
||||
color magenta/blue black/magenta
|
||||
@end example
|
||||
|
||||
@item chainloader @var{file}
|
||||
|
|
|
@ -8,6 +8,9 @@ timeout 30
|
|||
# By default, boot the first entry.
|
||||
default 0
|
||||
|
||||
# Fallback to the second entry.
|
||||
fallback 1
|
||||
|
||||
# For booting the GNU Hurd
|
||||
title GNU/Hurd
|
||||
root (hd0,0)
|
||||
|
@ -51,3 +54,7 @@ chainloader +1
|
|||
title Install GRUB into the hard disk
|
||||
root (hd0,0)
|
||||
install /boot/grub/stage1 d (hd0) /boot/grub/stage2 p
|
||||
|
||||
# Change the colors.
|
||||
title Change the colors
|
||||
color light-green/brown blink-red/blue
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue