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
28e733eb
authored
Nov 16, 2015
by
malcolm
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Added CTRL support, and ^L to clear for testing
parent
5c4b5e97
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
src/io.c
src/io.c
View file @
28e733eb
...
@@ -123,6 +123,14 @@ void kbd_irq()
...
@@ -123,6 +123,14 @@ void kbd_irq()
{
{
modifiers
[
MOD_SHIFT
]
=
0
;
modifiers
[
MOD_SHIFT
]
=
0
;
}
}
else
if
(
a
==
0x1d
)
{
modifiers
[
MOD_CTRL
]
=
1
;
}
else
if
(
a
==
0x9d
)
{
modifiers
[
MOD_CTRL
]
=
0
;
}
else
else
{
{
if
(
a
==
0x4b
)
if
(
a
==
0x4b
)
...
@@ -167,6 +175,16 @@ void kbd_irq()
...
@@ -167,6 +175,16 @@ void kbd_irq()
terminal_putchar
(
in
);
terminal_putchar
(
in
);
}
}
}
}
else
if
(
modifiers
[
MOD_CTRL
]
==
1
&&
(
in
==
'l'
||
in
==
'L'
))
{
terminal_clear
();
for
(
int
i
=
0
;
i
<
kb_buf_size
;
i
++
)
{
kb_buf
[
i
]
=
'\0'
;
}
kb_buf_size
=
0
;
terminal_writestring
(
"> "
);
}
else
if
(
in
!=
'\0'
)
else
if
(
in
!=
'\0'
)
{
{
kb_buf
[
kb_buf_size
]
=
in
;
kb_buf
[
kb_buf_size
]
=
in
;
...
...
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