video/console: Implement ANSI clear line command
authorAndre Przywara <andre.przywara@arm.com>
Sat, 23 Mar 2019 01:29:58 +0000 (01:29 +0000)
committerAnatolij Gustschin <agust@denx.de>
Sun, 14 Apr 2019 12:18:47 +0000 (14:18 +0200)
commit4422294cbe37e3b2bcbbb066e0d53411880cf07e
tree9b6900d1b70587a43fc6655e23b8b9169f34b83e
parent29c158b90d9fe1b8e007ee6b43f85c7f4b5f848b
video/console: Implement ANSI clear line command

There is a standard ANSI terminal escape sequence to clear a whole line
of text. So far the DM_VIDEO console was missing this code.

Detect the sequence and use vidconsole_set_row with the background
colour to fix this omission.

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
drivers/video/vidconsole-uclass.c