]> git.dujemihanovic.xyz Git - nameless-os.git/blobdiff - kernel/kernel.c
Implement input part of stdio
[nameless-os.git] / kernel / kernel.c
index c82bd4d7bc085d4f36ed4dbad94df65dbf304250..0ce9b6df3c492941a5ba0dbe3caa70d26f151755 100644 (file)
@@ -5,6 +5,7 @@
 #include <irq/interrupt.h>
 #include <irq/i8259a.h>
 #include <input/ps2.h>
+#include <stddef.h>
 
 struct idt_descriptor idt[256] __attribute__((aligned(0x10)));
 struct idtr idtr __attribute__((aligned(0x10)));
@@ -82,5 +83,11 @@ void kmain(void)
        }
        asm volatile ("sti");
        kprint("All done\n", 0);
-       while(1);
+
+       while(1) {
+               char *string = NULL;
+               string = kgets();
+               kprint(string, VGA_COLOR_LIME);
+               kprint("\n", 0);
+       }
 }