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
f0b9be9d
authored
Nov 16, 2015
by
malcolm
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Fixed hideous build errors and non-typing keys producing spaces
parent
a13568ec
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
src/io.c
src/io.c
View file @
f0b9be9d
...
...
@@ -6,16 +6,16 @@
#include "term.h"
#include "comp.h"
char
scan_map
[
256
]
=
{
'
','
','
1
','
2
','
3
','
4
','
5
','
6
','
7
','
8
','
9
','
0
','
-
','
=
','
\
b
','
\
t
'
,
'q'
,
'w'
,
'e'
,
'r'
,
't'
,
'y'
,
'u'
,
'i'
,
'o'
,
'p'
,
'['
,
']'
,
'\n'
,
'
^
'
,
'a'
,
's'
,
'd'
,
'f'
,
'g'
,
'h'
,
'j'
,
'k'
,
'l'
,
';'
,
'\''
,
'`'
,
'
S
'
,
'\\'
,
'z'
,
'x'
,
'c'
,
'v'
,
'b'
,
'n'
,
'm'
,
','
,
'.'
,
'/'
,
'
','','','
','','','','','','
'
,
'
','','','','','','
'
};
char
shift_map
[
256
]
=
{
'
','
','
!
','
@
','
#
','
$
','
%
','
^
','
&
','
*
','
(
','
)
','
_
','
+
','
\
b
','
\
t
'
,
'Q'
,
'W'
,
'E'
,
'R'
,
'T'
,
'Y'
,
'U'
,
'I'
,
'O'
,
'P'
,
'{'
,
'}'
,
'\n'
,
'
^
'
,
'A'
,
'S'
,
char
scan_map
[
256
]
=
{
'
\0'
,
'\0
'
,
'1'
,
'2'
,
'3'
,
'4'
,
'5'
,
'6'
,
'7'
,
'8'
,
'9'
,
'0'
,
'-'
,
'='
,
'\b'
,
'\t'
,
'q'
,
'w'
,
'e'
,
'r'
,
't'
,
'y'
,
'u'
,
'i'
,
'o'
,
'p'
,
'['
,
']'
,
'\n'
,
'
\0
'
,
'a'
,
's'
,
'd'
,
'f'
,
'g'
,
'h'
,
'j'
,
'k'
,
'l'
,
';'
,
'\''
,
'`'
,
'
\0
'
,
'\\'
,
'z'
,
'x'
,
'c'
,
'v'
,
'b'
,
'n'
,
'm'
,
','
,
'.'
,
'/'
,
'
\0'
,
'\0'
,
'\0'
,
' '
,
'\0'
,
'\0'
,
'\0'
,
'\0'
,
'\0'
,
'\0
'
,
'
\0'
,
'\0'
,
'\0'
,
'\0'
,
'\0'
,
'\0'
,
'\0
'
};
char
shift_map
[
256
]
=
{
'
\0'
,
'\0
'
,
'!'
,
'@'
,
'#'
,
'$'
,
'%'
,
'^'
,
'&'
,
'*'
,
'('
,
')'
,
'_'
,
'+'
,
'\b'
,
'\t'
,
'Q'
,
'W'
,
'E'
,
'R'
,
'T'
,
'Y'
,
'U'
,
'I'
,
'O'
,
'P'
,
'{'
,
'}'
,
'\n'
,
'
\0
'
,
'A'
,
'S'
,
'D'
,
'F'
,
'G'
,
'H'
,
'J'
,
'K'
,
'L'
,
':'
,
'\"'
,
'~'
,
'S'
,
'|'
,
'Z'
,
'X'
,
'C'
,
'V'
,
'B'
,
'N'
,
'M'
,
'<'
,
'>'
,
'?'
,
'
','','','
','','','','','','
'
,
'
','','','','','','
'
};
'B'
,
'N'
,
'M'
,
'<'
,
'>'
,
'?'
,
'
\0'
,
'\0'
,
'\0'
,
' '
,
'\0'
,
'\0'
,
'\0'
,
'\0'
,
'\0'
,
'\0
'
,
'
\0'
,
'\0'
,
'\0'
,
'\0'
,
'\0'
,
'\0'
,
'\0
'
};
char
kb_buf
[
256
];
int
kb_buf_size
;
int
modifiers
[
6
]
=
{
0
,
0
,
0
};
...
...
@@ -155,7 +155,7 @@ void kbd_irq()
terminal_putchar
(
in
);
}
}
else
else
if
(
in
!=
'\0'
)
{
kb_buf
[
kb_buf_size
]
=
in
;
kb_buf_size
++
;
...
...
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