diff --git a/finsh/shell.c b/finsh/shell.c index 706f69ffa650eaf69ad15c201c7f624cfabe0bb3..9144c29bebfddf3ada4dae884fb78ace15d37976 100644 --- a/finsh/shell.c +++ b/finsh/shell.c @@ -311,9 +311,9 @@ void finsh_thread_entry(void* parameter) /* * handle backspace key */ - if (ch == 0x7f) + if (ch == 0x7f || ch == 0x08) { - if (pos != 0) rt_kprintf("%c", ch); + if (pos != 0)rt_kprintf("%c", ch); line[pos--] = 0; if (pos < 0) pos = 0; continue;