From d986648e9c83cdf79eb3ef4233d7836b67fb9c84 Mon Sep 17 00:00:00 2001 From: fangye Date: Sun, 23 Jan 2022 19:10:43 +0800 Subject: [PATCH] =?UTF-8?q?shell=E5=91=BD=E4=BB=A4=E8=A1=8C=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=E5=9B=9E=E9=80=80=E6=94=AF=E6=8C=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: fangye --- components/shell/src/base/shmsg.c | 5 +++++ 1 file changed, 5 insertions(+) mode change 100755 => 100644 components/shell/src/base/shmsg.c diff --git a/components/shell/src/base/shmsg.c b/components/shell/src/base/shmsg.c old mode 100755 new mode 100644 index c8ece50c..74e26169 --- a/components/shell/src/base/shmsg.c +++ b/components/shell/src/base/shmsg.c @@ -216,6 +216,11 @@ VOID ShellTaskEntry(VOID) ptr = buf; break; } + if (*ptr == '\b' && ptr != buf) { /* support backspace */ + PRINTK("\b \b"); + ptr--; + break; + } if (!VISIABLE_CHAR(*ptr)) { break; }