Octocontrabass wrote:
Agola wrote:
Is it possible the "keyboard_getchar()" was working without return?
Maybe, maybe not. I would have to see the code you lost to tell you.
Agola wrote:
And does newlib handle backspace while reading from stdin?
Or have I handle backspace myself?
As far as I can tell, newlib doesn't handle backspace when reading from anything.
I think the old "keyboard_getchar()" was:
Code:
char keyboard_getchar()
{
while (!(inb(0x64) & 0x1));
unsigned char scancode = inb(0x60);
if (scancode & 0x80) keyboard_getchar();
char chr = key_list[scancode];
terminal_putchar(chr);
return chr;
}
Maybe I deleted the return *accidentally*, or maybe it was working and it is not working now (that is strange
)
Compared their assembly outputs, they look nearly identical, I don't know what is the problem really