]> git.sur5r.net Git - u-boot/commit
efi_loader: console support for color attributes
authorRob Clark <robdclark@gmail.com>
Tue, 10 Oct 2017 12:23:01 +0000 (08:23 -0400)
committerAlexander Graf <agraf@suse.de>
Thu, 12 Oct 2017 15:24:25 +0000 (17:24 +0200)
commit2d5dc2a52d412964031c9920d354ad5bdc91c654
treed1d7bb7121e191a74b245fba924410a17e9e4510
parentbf19273e81eb5e23c9bc14c3881f92a120565561
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: Rob Clark <robdclark@gmail.com>
Tested-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Reviewed-by: Alexander Graf <agraf@suse.de>
[agraf: s/unsigned/unsigned int/]
Signed-off-by: Alexander Graf <agraf@suse.de>
include/efi_api.h
lib/efi_loader/efi_console.c