]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
use light-gray as default color in normal.mod for consistency
authorAndrey Borzenkov <arvidjaar@gmail.com>
Sat, 7 Dec 2013 16:00:48 +0000 (20:00 +0400)
committerAndrey Borzenkov <arvidjaar@gmail.com>
Sat, 7 Dec 2013 16:00:48 +0000 (20:00 +0400)
Defalut font color on PC console seems to be light-gray; this is
what user also gets in rescue prompt and what is defined as
GRUB_TERM_DEFAULT_NORMAL_COLOR. But normal.mod defaults to white.
This makes unpleasant visual effect as colors are changed after kernel
is booted.

Use the same color eveywhere for consistency and default to light-gray
as this is also what at least Linux kernel is using by default.

ChangeLog
grub-core/normal/main.c

index 435420d8221e48215134d6b84e415d7c57f07ac5..59f44001350b8d33c594c611972f5cdbbdaa4cd3 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2013-12-07  Andrey Borzenkov <arvidjaar@gmail.com>
+
+       * grub-core/normal/main.c (INIT): Set default color to light-gray
+       to match GRUB_TERM_DEFAULT_NORMAL_COLOR (i.e. rescue mode), Linux
+       and apparently BIOS defaults.
+
 2013-12-07  Vladimir Serbinenko  <phcoder@gmail.com>
 
        Transform -C option to grub-mkstandalone to --core-compress available
index 778de61cd0ffb3ae1447639b1dde7abd10b9945f..991a5952428196f851c4c59e6904c2b7f06c1221 100644 (file)
@@ -572,8 +572,8 @@ GRUB_MOD_INIT(normal)
   grub_env_export ("color_highlight");
 
   /* Set default color names.  */
-  grub_env_set ("color_normal", "white/black");
-  grub_env_set ("color_highlight", "black/white");
+  grub_env_set ("color_normal", "light-gray/black");
+  grub_env_set ("color_highlight", "black/light-gray");
 
   for (i = 0; i < ARRAY_SIZE (features); i++)
     {