summaryrefslogtreecommitdiff
path: root/src/kernel/tty.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel/tty.h')
-rw-r--r--src/kernel/tty.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/kernel/tty.h b/src/kernel/tty.h
new file mode 100644
index 0000000..3dc1525
--- /dev/null
+++ b/src/kernel/tty.h
@@ -0,0 +1,8 @@
+#pragma once
+#include <stddef.h>
+
+void tty_putchar(char c);
+void tty_write(const char *buf, size_t len);
+void tty_clear();
+
+#define tty_const(str) tty_write(str, sizeof(str) - 1)