mirror of
https://github.com/whowechina/aic_pico.git
synced 2024-11-28 07:20:49 +01:00
Ignore '\0' input in CLI
This commit is contained in:
parent
4a2e975580
commit
9f8a3860c1
@ -150,6 +150,9 @@ void cli_run()
|
||||
if (c == EOF) {
|
||||
return;
|
||||
}
|
||||
if (c == 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (c == '\b' || c == 127) { // both backspace and delete
|
||||
if (cmd_len > 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user