diff options
author | Andre Przywara <andre.przywara@arm.com> | 2019-03-23 01:29:56 +0000 |
---|---|---|
committer | Anatolij Gustschin <agust@denx.de> | 2019-04-14 14:18:47 +0200 |
commit | eabb0725d4224efd103779f78e75627d8abc91e6 (patch) | |
tree | a56b979134c35d7e0d93e6f4604a904722f809f1 /drivers/video/logicore_dp_tx.h | |
parent | 96c9bf7e2ae2ac331574cf5017a0381d184a45a8 (diff) |
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>
Diffstat (limited to 'drivers/video/logicore_dp_tx.h')
0 files changed, 0 insertions, 0 deletions