os-tutorial icon indicating copy to clipboard operation
os-tutorial copied to clipboard

how can i use the user_input function in a different location

Open 404Dev-404 opened this issue 3 years ago • 2 comments

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

404Dev-404 avatar Apr 10 '22 22:04 404Dev-404

Probably interrupts or smth.

xing1357 avatar Apr 11 '22 13:04 xing1357

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.

Ululin avatar Sep 02 '22 15:09 Ululin