mirror of
https://github.com/whowechina/chu_pico.git
synced 2025-03-01 15:30:33 +01:00
Fix getchar return handling
This commit is contained in:
parent
2b55c2bb40
commit
39af3431df
@ -179,9 +179,6 @@ void cli_run()
|
||||
if (c < 0) {
|
||||
return;
|
||||
}
|
||||
if (c == 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (c == '\b' || c == 127) { // both backspace and delete
|
||||
if (cmd_len > 0) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user