Commit eea26fd9 by malcolm

Added arrow key support

parent 0da65e79
Showing with 9 additions and 1 deletions
......@@ -11,7 +11,15 @@ void kbd_irq()
{
int a = inb(0x60);
serial_hexword(a);
if(a<0x80)
if(a==0x4b)
terminal_adjustcursor(-1,0);
else if(a==0x4d)
terminal_adjustcursor(1,0);
else if(a==0x48)
terminal_adjustcursor(0,-1);
else if(a==0x50)
terminal_adjustcursor(0,1);
else if(a<0x80)
terminal_putchar(scan_map[a]);
//else
//terminal_putchar(scan_map[a-0x80]);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment