> test
>
instead of
> test
Working!
> .
The code is here:
Code: Select all
....
printw("> ",console);
char * cmd;
char c = 0;
int i=0;
do
{
if(inb(0x60)!=c)
{
c = inb(0x60);
if(c == 28)
{
if(cmd == "test")
kprint("working\n");
kprint("\n> ");
}
if(c>0)
{
cmd[i] = scancode[c+1];
terminal_putchar(scancode[c+1]);
}
}
}
i++;
}
while(c!=1); //exit when ESC is pressed