From 6ff4b38d6378f36dc11acd6bee4c676f41462cc1 Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Tue, 9 Jul 2024 02:09:07 -0400 Subject: kernel: cons: Improve char handling and add cursor Signed-off-by: Ian Moffett --- sys/include/dev/cons/cons.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'sys/include') 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 #include +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); -- cgit v1.2.3