]> git.baikalelectronics.ru Git - uboot.git/commit
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)
commit24bd59e033a7b3ee5122fed1fe2bf74e763d2f65
tree0b9cf40e88e1bbda70ac14410c8153cfb944bacb
parent78baeeaee165bcf26965bda8e0ee1ccdef143404
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