Get_string()
Posted: Thu Feb 14, 2008 4:17 pm
Hello there,
I am making my own OS from scratch, as many of you here, and I have programmed my isr's, the gdt and the idt, irq's, etc. and I have come across a hurdle which I cant get past. I have a keyboard handler which is full of stuff to handle for the interface. I need to program a get string function, which basically adds the pressed letter from the keyboard buffer to a string until the user presses enter, when the keyboard handler exits. Then my kernel calls the get function which returns the string from get_string. I tried using flag variables to signal to the handler to add the letter to the get_string buffer, instead of going through the normal procedure or if the user pressed enter, disable the flag. However, I cannot have getsbuf=kblayout
I am making my own OS from scratch, as many of you here, and I have programmed my isr's, the gdt and the idt, irq's, etc. and I have come across a hurdle which I cant get past. I have a keyboard handler which is full of stuff to handle for the interface. I need to program a get string function, which basically adds the pressed letter from the keyboard buffer to a string until the user presses enter, when the keyboard handler exits. Then my kernel calls the get function which returns the string from get_string. I tried using flag variables to signal to the handler to add the letter to the get_string buffer, instead of going through the normal procedure or if the user pressed enter, disable the flag. However, I cannot have getsbuf=kblayout
Code: Select all
; because that will truncate the old value of the file. How can I have it so the old value does not get overwritten, but the the new key gets added?
Hope you understood the long post and thanks in advance,
t6q4