From d1b51888b6cfc4e5273c0619d8d3a6c58bd40913 Mon Sep 17 00:00:00 2001 From: bjorn3 <17426603+bjorn3@users.noreply.github.com> Date: Thu, 2 Jul 2026 19:57:52 +0200 Subject: [PATCH] Fix enter key in fbcond --- drivers/graphics/fbcond/src/text.rs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/drivers/graphics/fbcond/src/text.rs b/drivers/graphics/fbcond/src/text.rs index 096abd546a..a4625ddbf3 100644 --- a/drivers/graphics/fbcond/src/text.rs +++ b/drivers/graphics/fbcond/src/text.rs @@ -40,6 +40,10 @@ impl TextScreen { // Backspace buf.extend_from_slice(b"\x7F"); } + 0x1C => { + // Newline + buf.extend_from_slice(b"\n"); + } 0x47 => { // Home buf.extend_from_slice(b"\x1B[H"); @@ -98,9 +102,7 @@ impl TextScreen { _ => (), //TODO: Mouse in terminal } - for &b in buf.iter() { - self.input.push_back(b); - } + self.input.extend(buf); } pub fn can_read(&self) -> bool {