Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
I am making an OS and I have now finished making the bootloader and kernel. I have a working print() function and cls() function. I also have inportb() and outportb(), but I do not know how I would use these to get input from a user
The kernel is written in C, any help is appreciated
(btw: I read somewhere you need to use inportb() on port 60, but I have no idea what to do from there :3 )
Love4Boobies wrote:If you're asking for gets, then you don't know C. So how can you write a kernel in it?
This. gets() is probably one of the more insecure functions in the C standard library. Not to mention that it's deprecated in C99 and outright obsoleted (as in it may not even exist in some C standard library implementations) in C11. It's probably not a good idea to be writing an operating system kernel if you're used to using such hilariously broken libc functions.