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; }