diff options
author | Ian Moffett <ian@osmora.org> | 2025-06-13 21:10:52 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2025-06-13 21:10:52 -0400 |
commit | 6996c3587cffb67baa0d2dd7c12e0a123ad29e10 (patch) | |
tree | 3fc77cd92edfa3dc9642c733ca97042b1b633e98 /sys/dev/cons/cons_ansi.c | |
parent | d1e42507dc4df33073881776e26ebf16437321bb (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/dev/cons/cons_ansi.c')
-rw-r--r-- | sys/dev/cons/cons_ansi.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/dev/cons/cons_ansi.c b/sys/dev/cons/cons_ansi.c index 4403f9c..ab1f22a 100644 --- a/sys/dev/cons/cons_ansi.c +++ b/sys/dev/cons/cons_ansi.c @@ -90,8 +90,7 @@ ansi_feed(struct ansi_state *statep, char c) return c; case 2: if (c == 'H') { - cons_reset_cursor(&g_root_scr); - ansi_reset(statep); + cons_clear_scr(&g_root_scr, g_root_scr.bg); return ANSI_UPDATE_CURSOR; } break; |