jack23912 / grub4dos-chenall

Automatically exported from code.google.com/p/grub4dos-chenall
0 stars 0 forks source link

Support symbolic color names for extended color command. #131

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
This issue is more like a feature request than a bug.

What steps will reproduce the problem?
1. Have a grub4dos config file that contains this line:
color normal=cyan/black highlight=black/light-gray helptext=green/black 
heading=yellow/black standard=light-gray/black border=blue/black

What is the expected output? What do you see instead?
The actual result is, none of the colors have been applied. Every entries are 
in standard color (light-gray/black).

What version of the product are you using? On what operating system?
GRUB4DOS 0.4.5c 2013-04-19

Please provide any additional information below.
There is very little documentation available for this new color syntax. The 
only one I found is in ChangeLog_chenall.txt. 
(「新的color命令语法」那一章節)
Unfortunately, symbolic color names are not supported in this kind of syntax, 
so I have to read the source code to find the equivalent numeric color value.

This syntax will work:
color normal=0x03 highlight=0x70 helptext=0x02 heading=0x0E standard=0x07 
border=0x01

But not this:
color normal=cyan/black highlight=black/light-gray helptext=green/black 
heading=yellow/black standard=light-gray/black border=blue/black

Using numeric color value is inconvenient for new users. This feature could 
improve usability a little. Or, if this feature is rejected, documenting 
something about numeric color values also helps.

Original issue reported on code.google.com by explore...@gmail.com on 6 May 2013 at 4:07

GoogleCodeExporter commented 8 years ago
See
http://www.rmprepusb.com/tutorials/grub4dos
for grub4dos guide - this is up to date for latest 0.4.5c chenall build.

Original comment by Steve6375 on 6 May 2013 at 9:49

GoogleCodeExporter commented 8 years ago
@Steve6375
That guide is good, but the color part is incomplete. For example, it did not 
mention about the blink text and the "technical limitation" of it. (You must 
choose either blink text or light background color, it's impossible to have 
both!)

That's why I want to write a better manual.

Original comment by explore...@gmail.com on 6 May 2013 at 2:31

GoogleCodeExporter commented 8 years ago
color normal=cyan/black highlight=black/light-gray helptext=green/black 
heading=yellow/black standard=light-gray/black border=blue/black
I will add next version. _:)
and you now can use command
`echo -h` to see the numeric color value(0-0xff).

Original comment by chenall.cn on 12 May 2013 at 6:46

GoogleCodeExporter commented 8 years ago
This issue was updated by revision r343.

Original comment by chenall.cn on 14 May 2013 at 2:46