From mboxrd@z Thu Jan 1 00:00:00 1970 From: Anatolij Gustschin Date: Tue, 9 Apr 2019 23:04:47 +0200 Subject: [U-Boot] [PATCH 2/8] video/console: Implement reverse video ANSI sequence for DM_VIDEO In-Reply-To: <20190323013002.27117-3-andre.przywara@arm.com> References: <20190323013002.27117-1-andre.przywara@arm.com> <20190323013002.27117-3-andre.przywara@arm.com> Message-ID: <20190409230447.007b3518@crub> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Sat, 23 Mar 2019 01:29:56 +0000 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 > --- > drivers/video/vidconsole-uclass.c | 11 ++++++++++- > drivers/video/video-uclass.c | 1 + > include/video.h | 2 ++ > 3 files changed, 13 insertions(+), 1 deletion(-) Applied to u-boot-video/master, thanks! -- Anatolij