diff options
author | Ian Moffett <ian@osmora.org> | 2025-04-18 21:42:00 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2025-04-18 21:42:00 -0400 |
commit | 9f1cf20464d1db6a0861d93517e22f4f640f3e1a (patch) | |
tree | a2d8280be3bce4a5f99eb7010b173fd12ebb8a69 /sys/include/dev/cons/cons.h | |
parent | e4648e44a871e4d570acb7e149797759ff4be7fc (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.h | 5 |
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; }; |