diff options
author | Ian Moffett <ian@osmora.org> | 2024-07-09 02:09:07 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2024-07-09 02:09:07 -0400 |
commit | 6ff4b38d6378f36dc11acd6bee4c676f41462cc1 (patch) | |
tree | 116cd973bb315146cb927e5975422e3b2af24561 /sys/include | |
parent | 54c9c5246e28a8a3d586a5f7346e38648ef2b3f9 (diff) |
kernel: cons: Improve char handling and add cursor
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys/include')
-rw-r--r-- | sys/include/dev/cons/cons.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sys/include/dev/cons/cons.h b/sys/include/dev/cons/cons.h index 15a7f59..337b738 100644 --- a/sys/include/dev/cons/cons.h +++ b/sys/include/dev/cons/cons.h @@ -33,6 +33,12 @@ #include <sys/types.h> #include <dev/video/fbdev.h> +struct cons_char { + char c; + uint32_t fg; + uint32_t bg; +}; + struct cons_screen { struct fbdev fbdev; uint32_t fg; @@ -44,6 +50,9 @@ struct cons_screen { uint32_t ncols; uint32_t ch_col; /* Current col */ uint32_t ch_row; /* Current row */ + uint32_t curs_col; /* Cursor col */ + uint32_t curs_row; /* Cursor row */ + struct cons_char last_chr; }; void cons_init(void); |