From 6996c3587cffb67baa0d2dd7c12e0a123ad29e10 Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Fri, 13 Jun 2025 21:10:52 -0400 Subject: kernel: cons: Clear entire screen on demand - Flush the entire output buffer - Wipe the whole screen with "bg" - The entire console will now be cleared when a "\033[H" sequence is encountered Signed-off-by: Ian Moffett --- sys/include/dev/cons/cons.h | 1 + 1 file changed, 1 insertion(+) (limited to 'sys/include/dev') diff --git a/sys/include/dev/cons/cons.h b/sys/include/dev/cons/cons.h index 9868493..7599dd5 100644 --- a/sys/include/dev/cons/cons.h +++ b/sys/include/dev/cons/cons.h @@ -67,6 +67,7 @@ struct cons_screen { void cons_init(void); void cons_expose(void); void cons_update_color(struct cons_screen *scr, uint32_t fg, uint32_t bg); +void cons_clear_scr(struct cons_screen *scr, uint32_t bg); void cons_reset_color(struct cons_screen *scr); void cons_reset_cursor(struct cons_screen *scr); int cons_putch(struct cons_screen *scr, char c); -- cgit v1.2.3