summaryrefslogtreecommitdiff
path: root/sys/include/dev/cons/cons.h
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2025-04-18 21:42:00 -0400
committerIan Moffett <ian@osmora.org>2025-04-18 21:42:00 -0400
commit9f1cf20464d1db6a0861d93517e22f4f640f3e1a (patch)
treea2d8280be3bce4a5f99eb7010b173fd12ebb8a69 /sys/include/dev/cons/cons.h
parente4648e44a871e4d570acb7e149797759ff4be7fc (diff)
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 <ian@osmora.org>
Diffstat (limited to 'sys/include/dev/cons/cons.h')
-rw-r--r--sys/include/dev/cons/cons.h5
1 files changed, 5 insertions, 0 deletions
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 <sys/types.h>
#include <sys/spinlock.h>
#include <dev/video/fbdev.h>
+#include <dev/cons/consvar.h>
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;
};