From 01bd5258cf467326819c77584713fbc6ffe4fb32 Mon Sep 17 00:00:00 2001 From: LoGin Date: Sun, 22 Oct 2023 12:22:41 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3shell=E6=97=A0=E6=B3=95?= =?UTF-8?q?=E8=BE=93=E5=85=A5=E5=A4=A7=E5=86=99=E5=AD=97=E6=AF=8D'P'?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98=20(#404)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kernel/src/libs/keyboard_parser.rs | 4 ++-- user/apps/shell/shell.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/kernel/src/libs/keyboard_parser.rs b/kernel/src/libs/keyboard_parser.rs index 43bf01f5..35cb455d 100644 --- a/kernel/src/libs/keyboard_parser.rs +++ b/kernel/src/libs/keyboard_parser.rs @@ -337,7 +337,7 @@ impl TypeOneFSMState { } _ => { if flag_make == false { - //kdebug!("in type3 ch is {:#x}\n",ch); + // kdebug!("in type3 ch is {:#x}\n",ch); key = KeyFlag::NoneFlag; } } @@ -359,8 +359,8 @@ impl TypeOneFSMState { } let ch = TYPE1_KEY_CODE_MAPTABLE[col as usize + 2 * index as usize]; - if key != KeyFlag::NoneFlag { + // kdebug!("EMIT: ch is '{}', keyflag is {:?}\n", ch as char, key); Self::emit(tty, ch); } return TypeOneFSMState::Start; diff --git a/user/apps/shell/shell.c b/user/apps/shell/shell.c index 9c704e64..edacd1dc 100644 --- a/user/apps/shell/shell.c +++ b/user/apps/shell/shell.c @@ -213,7 +213,7 @@ int shell_readline(int fd, char *buf) return count; } - if (key && key != 0x50 && key != 0xc8) + if (key && key != 0xc8) { if (key == '\b') {