X-Git-Url: http://git.dujemihanovic.xyz/%7B%7B%20%24.Site.BaseURL%20%7D%7Dposts/index.xml?a=blobdiff_plain;f=kernel%2Fkernel.c;h=0ce9b6df3c492941a5ba0dbe3caa70d26f151755;hb=41cf62fc4e0ab87d8fbb584678a2d2e1dccdc065;hp=c82bd4d7bc085d4f36ed4dbad94df65dbf304250;hpb=b87962874082db4093c960cf613eedae918180fc;p=nameless-os.git diff --git a/kernel/kernel.c b/kernel/kernel.c index c82bd4d..0ce9b6d 100644 --- a/kernel/kernel.c +++ b/kernel/kernel.c @@ -5,6 +5,7 @@ #include #include #include +#include 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); + } }