[U-Boot] [PATCH 2/8] video/console: Implement reverse video ANSI sequence for DM_VIDEO
Simon Glass
sjg at chromium.org
Sat Mar 30 21:18:41 UTC 2019
On Fri, 22 Mar 2019 at 19:32, Andre Przywara <andre.przywara at arm.com> wrote:
>
> The video console for DM_VIDEO compliant drivers only understands a very
> small number of ANSI sequences. First and foremost it misses the "reverse
> video" command, which is used by our own bootmenu command to highlight
> the selected entry.
>
> To avoid forcing people to use their imagination when using the
> bootmenu, let's just implement the rather simple reverse effect. We need
> to store the background colour index for that, so that we can
> recalculate both the foreground and background colour pixel values.
>
> Signed-off-by: Andre Przywara <andre.przywara at arm.com>
> ---
> drivers/video/vidconsole-uclass.c | 11 ++++++++++-
> drivers/video/video-uclass.c | 1 +
> include/video.h | 2 ++
> 3 files changed, 13 insertions(+), 1 deletion(-)
Reviewed-by: Simon Glass <sjg at chromium.org>
More information about the U-Boot
mailing list