diff options
author | Ian Moffett <ian@osmora.org> | 2025-10-10 16:10:47 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2025-10-10 16:10:47 -0400 |
commit | fe317f8e7cb245cc36c0c6ac8fdef5d54168e978 (patch) | |
tree | f7087dd561cbc5bc408c074bde58e998f7240948 | |
parent | 93b071ad2d81f0976e41af1b5c4db7be44d68f30 (diff) |
Signed-off-by: Ian Moffett <ian@osmora.org>
-rw-r--r-- | src/sys/conf/GENERIC | 4 | ||||
-rw-r--r-- | src/sys/io/cons/cons.c | 12 |
2 files changed, 16 insertions, 0 deletions
diff --git a/src/sys/conf/GENERIC b/src/sys/conf/GENERIC index a667a78..a7321d8 100644 --- a/src/sys/conf/GENERIC +++ b/src/sys/conf/GENERIC @@ -2,3 +2,7 @@ option DUMP_MEMMAP yes // Dump memory map on boot // PCI switches and knobs setval PCI_MAX_BUS 8 // Max buses to scan on boot + +// Default console attributes +setval CONS_BG 0x000000 // Background color +setval CONS_FG 0xB57614 // Foreground color diff --git a/src/sys/io/cons/cons.c b/src/sys/io/cons/cons.c index a2b37c3..0543e89 100644 --- a/src/sys/io/cons/cons.c +++ b/src/sys/io/cons/cons.c @@ -37,8 +37,20 @@ #include <stdbool.h> #include <string.h> +/* kconf background color config */ +#if defined(__CONS_BG) +#define DEFAULT_BG __CONS_BG +#else #define DEFAULT_BG 0x000000 +#endif /* __CONS_BG */ + +/* kconf foreground color config */ +#if defined(__CONS_FG) +#define DEFAULT_FG __CONS_FG +#else #define DEFAULT_FG 0xB57614 +#endif /* !__CONS_FG */ + #define FONT_WIDTH 8 #define FONT_HEIGHT 20 |