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
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
src/io.c
src/io.c
View file @
eea26fd9
...
@@ -11,8 +11,16 @@ void kbd_irq()
...
@@ -11,8 +11,16 @@ void kbd_irq()
{
{
int
a
=
inb
(
0x60
);
int
a
=
inb
(
0x60
);
serial_hexword
(
a
);
serial_hexword
(
a
);
if
(
a
<
0x80
)
if
(
a
==
0x4b
)
terminal_putchar
(
scan_map
[
a
]);
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
//else
//terminal_putchar(scan_map[a-0x80]);
//terminal_putchar(scan_map[a-0x80]);
serial_writestring
(
"
\n
"
);
serial_writestring
(
"
\n
"
);
...
...
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