Skip to content
Snippets Groups Projects
Commit 2d5dc2a5 authored by Rob Clark's avatar Rob Clark Committed by Alexander Graf
Browse files

efi_loader: console support for color attributes


Shell.efi uses this, and supporting color attributes makes things look
nicer.  Map the EFI fg/bg color attributes to ANSI escape sequences.
Not all colors have a perfect match, but spec just says "Devices
supporting a different number of text colors are required to emulate the
above colors to the best of the device’s capabilities".

Signed-off-by: default avatarRob Clark <robdclark@gmail.com>
Tested-by: default avatarHeinrich Schuchardt <xypron.glpk@gmx.de>
Reviewed-by: default avatarAlexander Graf <agraf@suse.de>
[agraf: s/unsigned/unsigned int/]
Signed-off-by: default avatarAlexander Graf <agraf@suse.de>
parent bf19273e
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment