aboutsummaryrefslogtreecommitdiff
path: root/src/include/print.h
diff options
context:
space:
mode:
authorNic Gaffney <gaffney_nic@protonmail.com>2023-11-05 06:13:22 -0600
committerNic Gaffney <gaffney_nic@protonmail.com>2023-11-05 06:13:22 -0600
commit036398ab051f2df5b70303e03f4f6506d36cb6eb (patch)
tree0067db99aa1417bb58b3b4d65b960a47b1100475 /src/include/print.h
downloadgftos-036398ab051f2df5b70303e03f4f6506d36cb6eb.tar.gz
Initial Commit
Diffstat (limited to 'src/include/print.h')
-rw-r--r--src/include/print.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/src/include/print.h b/src/include/print.h
new file mode 100644
index 0000000..a8e228b
--- /dev/null
+++ b/src/include/print.h
@@ -0,0 +1,31 @@
+#pragma once
+
+#include <stddef.h>
+#include <stdint.h>
+
+// Define colors for printing
+enum {
+ PRINT_COLOR_BLACK = 0,
+ PRINT_COLOR_BLUE = 1,
+ PRINT_COLOR_GREEN = 2,
+ PRINT_COLOR_CYAN = 3,
+ PRINT_COLOR_RED = 4,
+ PRINT_COLOR_MAGENTA = 5,
+ PRINT_COLOR_BROWN = 6,
+ PRINT_COLOR_LIGHT_GRAY = 7,
+ PRINT_COLOR_DARK_GRAY = 8,
+ PRINT_COLOR_LIGHT_BLUE = 9,
+ PRINT_COLOR_LIGHT_GREEN = 10,
+ PRINT_COLOR_LIGHT_CYAN = 11,
+ PRINT_COLOR_LIGHT_RED = 12,
+ PRINT_COLOR_PINK = 13,
+ PRINT_COLOR_YELLOW = 14,
+ PRINT_COLOR_WHITE = 15,
+};
+
+// Prototypes
+void print_clear();
+void print_char(char);
+void print_str(char *);
+void print_set_color(uint8_t, uint8_t);
+void printf(const char *, ...);