aboutsummaryrefslogtreecommitdiff
path: root/screen/console.c
diff options
context:
space:
mode:
Diffstat (limited to 'screen/console.c')
-rw-r--r--screen/console.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/screen/console.c b/screen/console.c
index cceab6c..71a8456 100644
--- a/screen/console.c
+++ b/screen/console.c
@@ -74,6 +74,15 @@ void console_set_colors(uint8_t fg, uint8_t bg)
console_color = (bg << 4) | fg;
}
+/*********************************************************
+ * Swap the current console colours out
+ ********************************************************/
+void console_swap_colors()
+{
+ uint32_t t = console_color;
+ console_color = saved_console_color;
+ saved_console_color = t;
+}
/*********************************************************
* Set ONLY the console foreground colour