mirror of
https://xff.cz/git/u-boot/
synced 2025-09-02 09:12:08 +02:00
video: Add a function to clear the display
Move the code from the 'cls' command into the console file, so it can be called from elsewhere. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
@@ -156,6 +156,16 @@ int console_announce_r(void);
|
||||
*/
|
||||
void console_puts_select_stderr(bool serial_only, const char *s);
|
||||
|
||||
/**
|
||||
* console_clear() - Clear the console
|
||||
*
|
||||
* Uses an ANSI sequence to clear the display, failing back to clearing the
|
||||
* video display directly if !CONFIG_VIDEO_ANSI
|
||||
*
|
||||
* Return: 0 if OK, -ve on error
|
||||
*/
|
||||
int console_clear(void);
|
||||
|
||||
/*
|
||||
* CONSOLE multiplexing.
|
||||
*/
|
||||
|
Reference in New Issue
Block a user