Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
triazo
/
kernel
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
3
Merge Requests
0
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
eea26fd9
authored
Nov 02, 2015
by
malcolm
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Added arrow key support
parent
0da65e79
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletions
src/io.c
src/io.c
View file @
eea26fd9
...
...
@@ -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]);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment