grub4dos icon indicating copy to clipboard operation
grub4dos copied to clipboard

grub4efi: echo $[0x70] change background color not working in graphicsmode

Open steve6375 opened this issue 3 years ago • 2 comments

in latest 2022-11-28 grub4efi bootx64.efi

in graphicsmode 3, command echo $[0x70]FRED works

but in graphicsmode -1 800 (for instance) echo $[0x70]FRED produces no text (black on black?) image

800x600 image

image image

steve6375 avatar Nov 28 '22 11:11 steve6375

In text mode, the background color can be set for characters. In graphic mode, it is not allowed. This is to avoid interference caused by background color of characters.

The text mode has only 2 ^ 4=16 colors, while the graphic mode can have 2 ^ 24=16777216 colors, which is quite rich. It is unnecessary to set the background color of characters.

yaya2007 avatar Nov 29 '22 07:11 yaya2007

but it is necessary because it means batch file code and menus written for grub4dos will not work in grub4efi.

As in case above, a batch file which works OK in grub4dos and shows $[0x70] as grey background causes no text to be displayed when in grub4efi.

Is it not possible to support background colours and be compatible with grub4dos? Help text for 'echo help' says background colors are supported and does not say text mode only for uefi?

steve6375 avatar Nov 29 '22 09:11 steve6375