Skip to content

Commit

Permalink
Ok
Browse files Browse the repository at this point in the history
  • Loading branch information
svelterust committed Jan 27, 2024
1 parent 75753e9 commit 02bf2cd
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/interrupts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ extern "x86-interrupt" fn double_fault_handler(
extern "x86-interrupt" fn timer_interrupt_handler(
_stack_frame: InterruptStackFrame)
{
print!(".");
// print!(".");
unsafe {
PICS.lock().notify_end_of_interrupt(InterruptIndex::Timer.as_u8());
}
Expand All @@ -80,8 +80,8 @@ extern "x86-interrupt" fn keyboard_interrupt_handler(
use x86_64::instructions::port::Port;

lazy_static! {
static ref KEYBOARD: Mutex<Keyboard<layouts::Us104Key, ScancodeSet1>> =
Mutex::new(Keyboard::new(ScancodeSet1::new(), layouts::Us104Key,
static ref KEYBOARD: Mutex<Keyboard<layouts::Colemak, ScancodeSet1>> =
Mutex::new(Keyboard::new(ScancodeSet1::new(), layouts::Colemak,
HandleControl::Ignore)
);
}
Expand All @@ -94,7 +94,10 @@ extern "x86-interrupt" fn keyboard_interrupt_handler(
if let Some(key) = keyboard.process_keyevent(key_event) {
match key {
DecodedKey::Unicode(character) => print!("{}", character),
DecodedKey::RawKey(key) => print!("{:?}", key),
DecodedKey::RawKey(key) => {
// Delete key should go backwards
// print!("{:?}", key);
},
}
}
}
Expand Down

0 comments on commit 02bf2cd

Please sign in to comment.