Skip to content

Commit

Permalink
[shell] Add backspace character in ReadLine
Browse files Browse the repository at this point in the history
Signed-off-by: Andrei Menzopol <[email protected]>
  • Loading branch information
andrei-menzopol committed Jan 31, 2024
1 parent de86e2e commit 74133aa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib/shell/MainLoopDefault.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ size_t ReadLine(char * buffer, size_t max)
done = true;
}
break;
case 0x08:
case 0x7F:
// Do not accept backspace character (i.e. don't increment line_sz) and remove 1 additional character if it exists.
if (line_sz >= 1u)
Expand Down

0 comments on commit 74133aa

Please sign in to comment.