summaryrefslogtreecommitdiff
path: root/src/sys
diff options
context:
space:
mode:
Diffstat (limited to 'src/sys')
-rw-r--r--src/sys/conf/GENERIC4
-rw-r--r--src/sys/io/cons/cons.c12
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