diff options
author | Ian Moffett <ian@osmora.org> | 2025-09-15 03:25:51 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2025-09-15 03:26:17 -0400 |
commit | 5e8cf84fb8fb2821eb948ffd2fddafd18b18e8cc (patch) | |
tree | e816489c6b23afa83360faf27c0c493a1e81f0db /src/sys/include | |
parent | 40bca9deb5f81e57907e5614846678a46bcc1a49 (diff) |
kern: cons: Finish string writing logic
- Wrap on X overflow
- Wrap on Y overflow
- Keep track of max console width and height
- Add console enable/disable control
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'src/sys/include')
-rw-r--r-- | src/sys/include/io/cons/cons.h | 1 | ||||
-rw-r--r-- | src/sys/include/sys/syslog.h | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/src/sys/include/io/cons/cons.h b/src/sys/include/io/cons/cons.h index 7b0543e..4ae99a0 100644 --- a/src/sys/include/io/cons/cons.h +++ b/src/sys/include/io/cons/cons.h @@ -40,6 +40,7 @@ struct cons_scr { size_t text_x; size_t text_y; size_t max_col; + size_t max_row; uint32_t scr_bg; uint32_t scr_fg; }; diff --git a/src/sys/include/sys/syslog.h b/src/sys/include/sys/syslog.h index a8b24c2..ceaef73 100644 --- a/src/sys/include/sys/syslog.h +++ b/src/sys/include/sys/syslog.h @@ -31,10 +31,12 @@ #define _SYS_SYSLOG_H_ 1 #include <stdarg.h> +#include <stdbool.h> #if defined(_KERNEL) void vprintf(const char *fmt, va_list *ap); void printf(const char *fmt, ...); +void syslog_toggle(bool enable); #endif /* _KERNEL */ #endif /* !_SYS_SYSLOG */ |