os-tutorial
os-tutorial copied to clipboard
how can i use the user_input function in a different location
i want to make a text editor thing but i can't get input while a function is running so how can i get input and run a function at the same time
Probably interrupts or smth.
Very easy actually. Just have a list of functions, and pick one of them to be the handler. To switch, just pick a different handler from the index and call it in the keyboard.c file.