Shell backspace fix.

git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@9941 35acf78f-673a-0410-8e92-d51de3d6d3f4
This commit is contained in:
Giovanni Di Sirio 2016-11-21 08:52:40 +00:00
parent a31fcb8cc3
commit 2c5ca8e4ad
1 changed files with 2 additions and 2 deletions

View File

@ -521,9 +521,9 @@ bool shellGetLine(ShellConfig *scfg, char *line, unsigned size, ShellHistory *sh
#endif
if ((c == 8) || (c == 127)) {
if (p != line) {
streamPut(chp, c);
streamPut(chp, 0x08);
streamPut(chp, 0x20);
streamPut(chp, c);
streamPut(chp, 0x08);
p--;
}
continue;