Page 1 of 1
How do I implement input and output of text in my kernel?
Posted: Sat Jan 22, 2011 11:02 pm
by monsterhunter445
Hi everybody, I have finally got my first kernel running and I was wondering how I can implement some sort of input and output of text. Because at this moment I can only clear the screen and print out text. So can anyone please show some example code or direct me to some sort of link, because I haven't found anything on the wiki.
Re: How do I implement input and output of text in my kernel
Posted: Sat Jan 22, 2011 11:09 pm
by NickJohnson
You need to write a keyboard driver. This is pretty straightforward: read in from port 0x61 on IRQ1 and map scancodes to characters. (This requires interrupts to be set up properly.) Here's the relevant wiki link:
http://wiki.osdev.org/Keyboard
Re: How do I implement input and output of text in my kernel
Posted: Sat Jan 22, 2011 11:42 pm
by monsterhunter445
Thanks for the link, it was really helpful.