summaryrefslogtreecommitdiff
path: root/src/bees.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/bees.c')
-rw-r--r--src/bees.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/bees.c b/src/bees.c
new file mode 100644
index 0000000..7c2fbcb
--- /dev/null
+++ b/src/bees.c
@@ -0,0 +1,22 @@
+
+#include "vga.h"
+#include "printf.h"
+
+const char *bees_msg =
+"\n\n\n"
+" / \\ the number of bees generated by citrons os has exceeded the" "\n"
+" / \\ maximum amount your computer is capable of handling." "\n"
+" \\ -- /" "\n"
+" _====_ your computer will now halt." "\n"
+" / |--| \\" "\n"
+" / /==\\ \\ error: %s" "\n"
+" / /----\\ \\" "\n"
+" / /======\\ \\" "\n"
+" \\_/ ---- \\_/" "\n";
+
+void bees(const char *error) {
+ vsetcolor(vga_color(vga_white, vga_blue));
+ vclear();
+ printf(bees_msg, error);
+ while (1) asm("cli;hlt");
+}