From 9f1cf20464d1db6a0861d93517e22f4f640f3e1a Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Fri, 18 Apr 2025 21:42:00 -0400 Subject: kernel: cons: Add console buffer framework Major console improvements - Add console buffer framework for managing console input/output in a more smooth and elegant manner - Fix cursor bugs Signed-off-by: Ian Moffett --- sys/include/dev/cons/cons.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'sys/include/dev/cons/cons.h') diff --git a/sys/include/dev/cons/cons.h b/sys/include/dev/cons/cons.h index 8e2c2c6..3569c52 100644 --- a/sys/include/dev/cons/cons.h +++ b/sys/include/dev/cons/cons.h @@ -33,11 +33,14 @@ #include #include #include +#include struct cons_char { char c; uint32_t fg; uint32_t bg; + uint32_t x; + uint32_t y; }; struct cons_screen { @@ -53,6 +56,8 @@ struct cons_screen { uint32_t ch_row; /* Current row */ uint32_t curs_col; /* Cursor col */ uint32_t curs_row; /* Cursor row */ + struct cons_buf *ib; /* Input buffer */ + struct cons_buf **ob; /* Output buffers */ struct cons_char last_chr; struct spinlock lock; }; -- cgit v1.2.3