video: Clear the vidconsole rather than the video
authorSimon Glass <sjg@chromium.org>
Fri, 10 Mar 2023 20:47:21 +0000 (12:47 -0800)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Mon, 13 Mar 2023 12:53:01 +0000 (13:53 +0100)
commita76b60f8205eb7f02e17e10c13ad05e46a69c1fd
tree0b9cf40e88e1bbda70ac14410c8153cfb944bacb
parent9f62a472dfb26ec14408a27938ddd2a25700009d
video: Clear the vidconsole rather than the video

It is better to clear the console device rather than the video device,
since the console has the text display. We also need to reset the cursor
position with the console, but not with the video device.

Add a new function to handle this and update the 'cls' command to use it.

Signed-off-by: Simon Glass <sjg@chromium.org>
cmd/cls.c
drivers/video/vidconsole-uclass.c
include/video_console.h