summaryrefslogtreecommitdiff
path: root/sys/include/dev/cons/cons.h
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2025-06-13 21:10:52 -0400
committerIan Moffett <ian@osmora.org>2025-06-13 21:10:52 -0400
commit6996c3587cffb67baa0d2dd7c12e0a123ad29e10 (patch)
tree3fc77cd92edfa3dc9642c733ca97042b1b633e98 /sys/include/dev/cons/cons.h
parentd1e42507dc4df33073881776e26ebf16437321bb (diff)
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 <ian@osmora.org>
Diffstat (limited to 'sys/include/dev/cons/cons.h')
-rw-r--r--sys/include/dev/cons/cons.h1
1 files changed, 1 insertions, 0 deletions
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);