]> git.baikalelectronics.ru Git - uboot.git/commit
video/console: Implement reverse video ANSI sequence for DM_VIDEO
authorAndre Przywara <andre.przywara@arm.com>
Sat, 23 Mar 2019 01:29:56 +0000 (01:29 +0000)
committerAnatolij Gustschin <agust@denx.de>
Sun, 14 Apr 2019 12:18:47 +0000 (14:18 +0200)
commiteb65e09dd8eb677b95e7b99bfd0859ddee45a3ca
treea56b979134c35d7e0d93e6f4604a904722f809f1
parent5fa24051011da098fd7899e31f50aa7cb8091847
video/console: Implement reverse video ANSI sequence for DM_VIDEO

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@arm.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
[agust: merged BG color escape seq change to fix "ut dm video_ansi" test]
Signed-off-by: Anatolij Gustschin <agust@denx.de>
drivers/video/vidconsole-uclass.c
drivers/video/video-uclass.c
include/video.h