From 38fe3da9bfb0f6bd44d821e722f945037c2666d2 Mon Sep 17 00:00:00 2001 From: Adam Perkowski Date: Sun, 28 Jul 2024 16:03:01 +0200 Subject: [PATCH] Make left/right debug-only --- shell/src/interrupts.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/shell/src/interrupts.rs b/shell/src/interrupts.rs index 2ba2642..e37d963 100644 --- a/shell/src/interrupts.rs +++ b/shell/src/interrupts.rs @@ -138,10 +138,12 @@ extern "x86-interrupt" fn keyboard_interrupt_handler(_stack_frame: InterruptStac } KeyCode::ArrowLeft => { + #[cfg(debug_assertions)] WRITER.lock().decrement_column_position(); } KeyCode::ArrowRight => { + #[cfg(debug_assertions)] WRITER.lock().increment_column_position(); }